Skip to content

Commit f638590

Browse files
dvc94cheddyb
authored andcommitted
Enable builtins.
1 parent 7e7fdb4 commit f638590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rustc_codegen_spirv/src/symbols.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const BUILTINS: &[(&str, BuiltIn)] = {
5757
("frag_depth", FragDepth),
5858
("helper_invocation", HelperInvocation),
5959
("num_workgroups", NumWorkgroups),
60-
// ("workgroup_size", WorkgroupSize), -- constant
60+
("workgroup_size", WorkgroupSize),
6161
("workgroup_id", WorkgroupId),
6262
("local_invocation_id", LocalInvocationId),
6363
("global_invocation_id", GlobalInvocationId),
@@ -72,7 +72,7 @@ const BUILTINS: &[(&str, BuiltIn)] = {
7272
("num_subgroups", NumSubgroups),
7373
// ("num_enqueued_subgroups", NumEnqueuedSubgroups), -- Kernel-only
7474
("subgroup_id", SubgroupId),
75-
// ("subgroup_local_invocation_id", SubgroupLocalInvocationId), -- Kernel-only
75+
("subgroup_local_invocation_id", SubgroupLocalInvocationId),
7676
("vertex_index", VertexIndex),
7777
("instance_index", InstanceIndex),
7878
("subgroup_eq_mask", SubgroupEqMask),

0 commit comments

Comments
 (0)