mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
16 lines
335 B
WebGPU Shading Language
16 lines
335 B
WebGPU Shading Language
alias FVec3 = vec3<f32>;
|
|
alias IVec3 = vec3i;
|
|
alias Mat2 = mat2x2<f32>;
|
|
alias 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);
|
|
}
|