SPIRV-Cross/shaders-msl/comp/scalar-std450-distance-length-normalize.comp

21 lines
255 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(std430, set = 0, binding = 0) buffer SSBO
{
float a;
float b;
float c;
float d;
float e;
float f;
};
void main()
{
c = distance(a, b);
d = length(a);
e = normalize(a);
f = distance(a-1, b-2);
}