17 lines
266 B
Plaintext
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);
|
|
}
|