Skip to content

Be more lenient on the vector type used for global_invocation_id #885

@oisyn

Description

@oisyn

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.

Metadata

Metadata

Assignees

Labels

t: ergonomicsLanguage ergonomics discussions and experimentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions