SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).

This commit is contained in:
John Kessenich
2016-02-15 20:58:50 -07:00
parent 019f08fcd8
commit 6c292d3ba7
200 changed files with 7841 additions and 5577 deletions

29
Test/spv.subpass.frag Normal file
View File

@@ -0,0 +1,29 @@
#version 400
layout(input_attachment_index = 1) uniform subpassInput sub;
layout(input_attachment_index = 2) uniform subpassInputMS subMS;
layout(input_attachment_index = 3) uniform isubpassInput isub;
layout(input_attachment_index = 4) uniform isubpassInputMS isubMS;
layout(input_attachment_index = 5) uniform usubpassInput usub;
layout(input_attachment_index = 6) uniform usubpassInputMS usubMS;
out vec4 color;
out ivec4 icolor;
out uvec4 ucolor;
void foo(isubpassInputMS sb)
{
icolor += subpassLoad(sb, 3);
}
void main()
{
color = subpassLoad(sub);
color += subpassLoad(subMS, 3);
icolor = subpassLoad(isub);
icolor += subpassLoad(isubMS, 3);
ucolor = subpassLoad(usub);
ucolor += subpassLoad(usubMS, 3);
foo(isubMS);
}