blob: 14d05dcc1fb4dbc38730db87e48e6f197c484bb6 [file] [log] [blame]
Jeff Bolz9f2aec42019-01-06 17:58:04 -06001#version 450
2#extension GL_EXT_shader_16bit_storage : enable
3#extension GL_EXT_shader_8bit_storage : enable
4#extension GL_EXT_buffer_reference : enable
5
6layout(std140, binding = 0) buffer AcBlock { highp uint ac_numPassed; };
7
8layout(std140, buffer_reference) buffer Block
9{
10 uint8_t var;
11};
12layout (push_constant, std430) uniform PC {
13 Block block;
14};
15
16bool compare_uint8_t (highp uint a, highp uint b) { return a == b; }
17
18void main (void)
19{
20 bool allOk = true;
21 allOk = allOk && compare_uint8_t(uint(block.var), 7u);
22 if (allOk)
23 ac_numPassed++;
24
25 block.var = uint8_t(9u);
26}