SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
parent
019f08fcd8
commit
6c292d3ba7
200 changed files with 7841 additions and 5577 deletions
17
Test/spv.pushConstant.vert
Normal file
17
Test/spv.pushConstant.vert
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue