WebGPU shared basic types

Types that are common to refer to, Vec2f, Vec4f and Mat4f

Structs

Vec2f

struct Vec2f {
    x: F32
    y: F32
}

Vec4f

struct Vec4f {
    w: F32
    x: F32
    y: F32
    z: F32
}

Mat4f

struct Mat4f {
    v: Block<Vec4f, 4>
}