SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
29
Test/spv.subpass.frag
Normal file
29
Test/spv.subpass.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user