☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders-msl
/
comp
/
scalar-std450-distance-length-normalize.comp
☽
☼
third_party/spirv-cross/shaders-msl/comp/scalar-std450-distance-length-normalize.comp
code
plain
raw
Apache-2.0
2012-2021, The Android Open Source Project; 2015-2021, Google LLC; 2017, Romain Guy
debian/copyright
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
}