SPIRV-Cross/shaders-msl-no-opt/comp/trivial-select-matrix.spv14.comp
2021-10-13 16:08:29 +02:00

17 lines
266 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(set = 0, binding = 0) buffer A
{
mat3 a;
float b;
};
void main()
{
// Scalar to Matrix
bool c = b < 1.0;
a = c ? mat3(vec3(1), vec3(1), vec3(1)) : mat3(vec3(0), vec3(0), vec3(0));
a = c ? mat3(1) : mat3(0);
}