projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git]
/
Test
/
invalidSwizzle.vert
1
#version 420
2
3
void f();
4
uniform sampler2D s;
5
6
void main() {
7
vec2 v = s.rr; // Swizzles do not apply to samplers
8
f().xx; // Scalar swizzle does not apply to void
9
f().xy; // Vector swizzle does not apply either
10
}