Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/comp/scalar-std450-distance-length-normalize.comp

raw
1 #version 450
2 layout(local_size_x = 1) in;
3
4 layout(std430, set = 0, binding = 0) buffer SSBO
5 {
6 float a;
7 float b;
8 float c;
9 float d;
10 float e;
11 };
12
13 void main()
14 {
15 c = distance(a, b);
16 d = length(a);
17 e = normalize(a);
18 }