Enable builtins.

This commit is contained in:
David Craven 2022-02-07 12:45:51 +01:00 committed by Eduard-Mihai Burtescu
parent 7e7fdb4a4b
commit f638590389

View File

@ -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),