mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
d4865f0b68
gl_SubGroupARB was being correctly declared as an Input variable in Vulkan but it was missing the Flat decoration, which made spirv-val emit the VUID-StandaloneSpirv-Flat-04744 validation error with shaders using that built-in.
11 lines
195 B
GLSL
11 lines
195 B
GLSL
#version 450
|
|
#extension GL_ARB_shader_ballot : enable
|
|
#extension GL_KHR_shader_subgroup_basic : enable
|
|
|
|
layout(location = 0) out uint result;
|
|
|
|
void main (void)
|
|
{
|
|
result = gl_SubGroupSizeARB;
|
|
}
|