mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
5c352476c7
This should generate a Volatile tag on the access, not on the variable itself.
17 lines
267 B
GLSL
17 lines
267 B
GLSL
#version 310 es
|
|
|
|
#pragma use_vulkan_memory_model
|
|
|
|
#extension GL_EXT_demote_to_helper_invocation : require
|
|
|
|
precision highp float;
|
|
|
|
layout (set=0, binding=0) buffer B {
|
|
float o;
|
|
};
|
|
|
|
void main() {
|
|
demote;
|
|
o = gl_HelperInvocation ? 1.0 : 0.0;
|
|
}
|