Variable STANDARD_UNIFORM_WGSLConst
STANDARD_UNIFORM_WGSL: "struct StandardUniforms {\n viewProjection : mat4x4<f32>,\n model : mat4x4<f32>,\n baseColor : vec4<f32>,\n normalMatrix : mat3x3<f32>,\n emissive : vec4<f32>,\n surface : vec4<f32>,\n};\n\n@group(0) @binding(0) var<uniform> draw : StandardUniforms;" = ...
The WGSL declaration of the block above —
DRAW_UNIFORM_WGSL's discipline: declared layout and read layout side by side in one module.The variable is named
draw, as every group-0 block in this package is, so the shared vertex stage (shadedVertexStageWgsl) splices in unchanged.