Files
wgpu/tests/in/type-alias.wgsl
T

16 lines
331 B
WebGPU Shading Language

type FVec3 = vec3<f32>;
type IVec3 = vec3i;
type Mat2 = mat2x2<f32>;
type Mat3 = mat3x3f;
fn main() {
let a = FVec3(0.0, 0.0, 0.0);
let c = FVec3(0.0);
let b = FVec3(vec2<f32>(0.0), 0.0);
let d = FVec3(vec2<f32>(0.0), 0.0);
let e = IVec3(d);
let f = Mat2(1.0, 2.0, 3.0, 4.0);
let g = Mat3(a, a, a);
}