SPIRV-Cross/shaders-msl/vert/packed-bool-to-uint.vert
Le Hoang Quyen 9ddfe6db6d Fix #1359: MSL: If the packed type is scalar, don't emit "pack_" prefix.
Scalar type is already packed in metal.
2020-05-06 00:43:34 +08:00

23 lines
375 B
GLSL

#version 450 core
struct Struct
{
bool flags[1];
};
layout(set=0, binding=0, std140) uniform defaultUniformsVS
{
Struct flags;
vec2 uquad[4];
mat4 umatrix;
};
layout (location = 0) in vec4 a_position;
void main()
{
gl_Position = umatrix * vec4(uquad[gl_VertexIndex], a_position.z, a_position.w);
if (flags.flags[0])
gl_Position.z = 0.0;
}