Debian Codegraph @

third_party/spirv-cross/shaders-msl/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 float f;
12 };
13
14 void main()
15 {
16 c = distance(a, b);
17 d = length(a);
18 e = normalize(a);
19 f = distance(a-1, b-2);
20 }