Files
filament/third_party/glslang/Test/spv.pushConstant.vert
Mathias Agopian 538f497d4d update glslang to version 15.4.0
add a nicer script to update
2025-08-11 15:44:28 -07:00

18 lines
299 B
GLSL

#version 400
layout(push_constant) uniform Material {
int kind;
float fa[3];
} matInst;
out vec4 color;
void main()
{
switch (matInst.kind) {
case 1: color = vec4(0.2); break;
case 2: color = vec4(0.5); break;
default: color = vec4(0.0); break;
}
}