aboutsummaryrefslogtreecommitdiff
path: root/Test/spv.1.6.helperInvocation.memmodel.frag
blob: b727f8e0ea6db4d2d511162cbb87b9d06888584c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
}