mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Enable builtins.
This commit is contained in:
parent
7e7fdb4a4b
commit
f638590389
@ -57,7 +57,7 @@ const BUILTINS: &[(&str, BuiltIn)] = {
|
||||
("frag_depth", FragDepth),
|
||||
("helper_invocation", HelperInvocation),
|
||||
("num_workgroups", NumWorkgroups),
|
||||
// ("workgroup_size", WorkgroupSize), -- constant
|
||||
("workgroup_size", WorkgroupSize),
|
||||
("workgroup_id", WorkgroupId),
|
||||
("local_invocation_id", LocalInvocationId),
|
||||
("global_invocation_id", GlobalInvocationId),
|
||||
@ -72,7 +72,7 @@ const BUILTINS: &[(&str, BuiltIn)] = {
|
||||
("num_subgroups", NumSubgroups),
|
||||
// ("num_enqueued_subgroups", NumEnqueuedSubgroups), -- Kernel-only
|
||||
("subgroup_id", SubgroupId),
|
||||
// ("subgroup_local_invocation_id", SubgroupLocalInvocationId), -- Kernel-only
|
||||
("subgroup_local_invocation_id", SubgroupLocalInvocationId),
|
||||
("vertex_index", VertexIndex),
|
||||
("instance_index", InstanceIndex),
|
||||
("subgroup_eq_mask", SubgroupEqMask),
|
||||
|
Loading…
Reference in New Issue
Block a user