Replies: 2 comments
-
Answering my own discussion. Simply adding a flag ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, you need to enable Vulkan 1.1 to enable subgroup operations. Since you're compiling your shaders from GLSL source, as you discovered, you need to do this on the GLSL compiler as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been looking into subgroup operations in support of Vulkan compute.
One of the basic tools of GPU Compute codes is a prefix sum. I tried to use an interesting implementation with a shader at https://github.com/linebender/piet-gpu/blob/prefix/piet-gpu-hal/examples/shader/prefix.comp
Unfortunately, glslangValidator installed from LunarG gives me the following error messages when compiling:
The error is with
subgroupInclusiveAdd
and the same error appears wheresubgroupBroadcast
is called.Does that mean I am out of luck or is there a way to get those function to work with MoltenVK?
Beta Was this translation helpful? Give feedback.
All reactions