diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.pushConstant.vert')
-rw-r--r-- | chromium/third_party/glslang/src/Test/spv.pushConstant.vert | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.pushConstant.vert b/chromium/third_party/glslang/src/Test/spv.pushConstant.vert new file mode 100644 index 00000000000..5fb64adf704 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/spv.pushConstant.vert @@ -0,0 +1,17 @@ +#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; + } +} |