alaingalvan/webgpu-seed

Blogpost: UBO in shader syntax.

wrightwriter opened this issue · 0 comments

Under Shader Modules,

vsOut.Position = modelViewProj * vec4<f32>(inPos, 1.0);
should be
vsOut.Position = uniforms.modelViewProj * vec4<f32>(inPos, 1.0);

The former doesn't compile and throws an error.