diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.300layout.frag')
-rw-r--r-- | chromium/third_party/glslang/src/Test/spv.300layout.frag | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.300layout.frag b/chromium/third_party/glslang/src/Test/spv.300layout.frag new file mode 100644 index 00000000000..69687f6db3a --- /dev/null +++ b/chromium/third_party/glslang/src/Test/spv.300layout.frag @@ -0,0 +1,22 @@ +#version 310 es + +precision mediump float; + +in vec4 pos; +in vec3 color; + +layout(location = 7) out vec3 c; +layout(LocatioN = 3) out vec4 p[2]; + +struct S { + vec3 c; + float f; +}; + +in S s; + +void main() +{ + c = color + s.c; + p[1] = pos * s.f; +} |