yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAdd ballotAMD from GL_AMD_gcn_shader2ba07bca

main
297 B15 linesraw
1#version 450
2
3#extension GL_AMD_gcn_shader : require
4#extension GL_ARB_gpu_shader_int64 : require
5
6layout(local_size_x = 64) in;
7
8layout(binding = 0) buffer Ballots {
9    uint64_t ballots[];
10};
11
12void main()
13{
14    ballots[gl_LocalInvocationIndex] = ballotAMD(gl_LocalInvocationIndex % 2u == 0u);
15}