Skip to content

Commit

Permalink
Add missing feature to glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
valaphee committed May 16, 2024
1 parent bbb3965 commit 93b2a35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions naga/src/back/glsl/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ impl FeaturesManager {
out,
"#extension GL_KHR_shader_subgroup_shuffle_relative : require"
)?;
writeln!(out, "#extension GL_KHR_shader_subgroup_quad : require")?;
}

Ok(())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#extension GL_KHR_shader_subgroup_ballot : require
#extension GL_KHR_shader_subgroup_shuffle : require
#extension GL_KHR_shader_subgroup_shuffle_relative : require
#extension GL_KHR_shader_subgroup_quad : require
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

uint num_subgroups_1 = 0u;
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/glsl/subgroup-operations.main.Compute.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#extension GL_KHR_shader_subgroup_ballot : require
#extension GL_KHR_shader_subgroup_shuffle : require
#extension GL_KHR_shader_subgroup_shuffle_relative : require
#extension GL_KHR_shader_subgroup_quad : require
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

struct Structure {
Expand Down

0 comments on commit 93b2a35

Please sign in to comment.