Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aliases #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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