rust-gpu icon indicating copy to clipboard operation
rust-gpu copied to clipboard

Be more lenient on the vector type used for global_invocation_id

Open oisyn opened this issue 3 years ago • 0 comments

From @hrydgard: The builtin #[spirv(global_invocation_id)] id: UVec3 needs to be declared as an UVec3, and then truncated if you want a Vec2. In HLSL and GLSL it's common to declare it as a 2-vector instead (UVec2) if you only care about x and y.

oisyn avatar Jul 13 '22 09:07 oisyn