1#version 460 core 2#extension GL_EXT_demote_to_helper_invocation : enable 3 4layout(set = 0, binding = 0) uniform sampler2D tex; 5layout(location = 0) in vec2 coord; 6layout(location = 0) out vec4 o; 7 8void main (void) 9{ 10 vec4 v = texture(tex, coord); 11 12 if (v == vec4(0.1,0.2,0.3,0.4)) 13 demote; 14 15 bool x = helperInvocationEXT(); 16 17 o = v; 18} 19