Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/wgsl/language/types/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ a vector of `N` components of type `T`. `N` must be in `{2, 3, 4}` and `T` must
one of the scalar types. `T` is the *component type* of the vector.
{{< wgsl >}}
var a: vec3<f32> = vec3<f32>(1.0, 2.2, 3.1);
var b: vec3f = vec3f(1.0, 2.0, 3.0);
{{< /wgsl >}}


Expand All @@ -44,7 +45,7 @@ both in `{2, 3, 4}`, and `T` must be a scalar floating point type.
Equivalently, it can be viewed as `C` column vectors of type `vecR<T>`.
{{< wgsl >}}
mat2x3<f32> // This is a 2 column, 3 row matrix of 32-bit floats.
// Equivalently, it is 2 column vectors of type vec3<f32>.
mat2x3f // mat2x3f, it is 2 column vectors of type vec3f.
{{< /wgsl >}}

## Atomic
Expand Down