third_party/spirv-cross/reference/opt/shaders-hlsl/comp/scalar-std450-distance-length-normalize.comp
raw| 1 | static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u); |
| 2 | |
| 3 | RWByteAddressBuffer _9 : register(u0); |
| 4 | |
| 5 | void comp_main() |
| 6 | { |
| 7 | _9.Store(8, asuint(distance(asfloat(_9.Load(0)), asfloat(_9.Load(4))))); |
| 8 | _9.Store(12, asuint(length(asfloat(_9.Load(0))))); |
| 9 | _9.Store(16, asuint(sign(asfloat(_9.Load(0))))); |
| 10 | } |
| 11 | |
| 12 | [numthreads(1, 1, 1)] |
| 13 | void main() |
| 14 | { |
| 15 | comp_main(); |
| 16 | } |