25 lines
827 B
Plaintext
25 lines
827 B
Plaintext
#version 450
|
|
#extension GL_KHR_shader_subgroup_arithmetic : require
|
|
#extension GL_KHR_shader_subgroup_clustered : require
|
|
|
|
layout(location = 0) flat in int index;
|
|
layout(location = 0) out uint FragColor;
|
|
|
|
void main()
|
|
{
|
|
uint _17 = uint(index);
|
|
FragColor = uint(subgroupMin(index));
|
|
FragColor = uint(subgroupMax(int(_17)));
|
|
FragColor = subgroupMin(uint(index));
|
|
FragColor = subgroupMax(_17);
|
|
FragColor = uint(subgroupInclusiveMax(index));
|
|
FragColor = uint(subgroupInclusiveMin(int(_17)));
|
|
FragColor = subgroupExclusiveMax(uint(index));
|
|
FragColor = subgroupExclusiveMin(_17);
|
|
FragColor = uint(subgroupClusteredMin(index, 4u));
|
|
FragColor = uint(subgroupClusteredMax(int(_17), 4u));
|
|
FragColor = subgroupClusteredMin(uint(index), 4u);
|
|
FragColor = subgroupClusteredMax(_17, 4u);
|
|
}
|
|
|