diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.varyingArray.frag')
-rw-r--r-- | chromium/third_party/glslang/src/Test/spv.varyingArray.frag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.varyingArray.frag b/chromium/third_party/glslang/src/Test/spv.varyingArray.frag new file mode 100644 index 00000000000..9baa3467414 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/spv.varyingArray.frag @@ -0,0 +1,19 @@ +#version 140 +uniform sampler2D texSampler2D; +in vec4 color; +in float alpha; + +in vec4 TexCoord[6]; + +in vec4 foo[3]; + +void main() +{ + vec4 texColor = texture(texSampler2D, vec2(TexCoord[4] + TexCoord[5])); + + texColor += color; + + texColor.a = alpha; + + gl_FragColor = foo[1] + TexCoord[0] + TexCoord[4] + texColor; +} |