third_party/spirv-cross/reference/opt/shaders-hlsl/comp/globallycoherent.comp
raw| 1 | static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u); |
| 2 | |
| 3 | globallycoherent RWByteAddressBuffer _29 : register(u3); |
| 4 | ByteAddressBuffer _33 : register(t2); |
| 5 | RWTexture2D<float> uImageIn : register(u0); |
| 6 | globallycoherent RWTexture2D<float> uImageOut : register(u1); |
| 7 | |
| 8 | void comp_main() |
| 9 | { |
| 10 | uImageOut[int2(9, 7)] = uImageIn[int2(9, 7)].x; |
| 11 | _29.Store(0, asuint(asfloat(_33.Load(0)))); |
| 12 | } |
| 13 | |
| 14 | [numthreads(1, 1, 1)] |
| 15 | void main() |
| 16 | { |
| 17 | comp_main(); |
| 18 | } |