Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
8b782e77
Commit
8b782e77
authored
6 years ago
by
John Kessenich
Browse files
Options
Downloads
Patches
Plain Diff
Tests: Add test for ways of calling no-argument macro with ().
parent
1c1c2d64
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Test/baseResults/preprocessor.simple.vert.out
+30
-0
30 additions, 0 deletions
Test/baseResults/preprocessor.simple.vert.out
Test/preprocessor.simple.vert
+30
-0
30 additions, 0 deletions
Test/preprocessor.simple.vert
with
60 additions
and
0 deletions
Test/baseResults/preprocessor.simple.vert.out
+
30
−
0
View file @
8b782e77
...
...
@@ -28,3 +28,33 @@ int main(){
1.2 2E10 5u - 5l f
}
struct S {
int member1;
float member2;
vec4 member3;
};
void foo()
{
S s;
s . member2 + s . member1;
s . member3 . zyx;
s . member2 . xxyz;
s . member2 . yyz;
s . member2 . xxyz();
s . member2 . yzy;
vec3 a = vec3(0);vec3 b = a . zxyz;vec3 b = a . xxyz;vec3 b = a . yyz;vec3 b = a . xxyz();vec3 b = a .;vec3 b = a . z;
}
This diff is collapsed.
Click to expand it.
Test/preprocessor.simple.vert
100644 → 100755
+
30
−
0
View file @
8b782e77
...
...
@@ -27,3 +27,33 @@ int main() {
+=
-=
*=
/=
%=
<<=
>>=
&=
|=
^=
1
.
2
2E10
5u
-
5l
f
}
struct
S
{
int
member1
;
float
member2
;
vec4
member3
;
};
#define xyz xxyz
#define yzy() yyz
#define LIGHTING_COMMON_BRDF() \
vec3
a
=
vec3
(
0
);
\
vec3
b
=
a
.
zxyz
;
\
vec3
b
=
a
.
xyz
;
\
vec3
b
=
a
.
yzy
();
\
vec3
b
=
a
.
xyz
();
\
vec3
b
=
a
.
yzy
;
\
vec3
b
=
a
.
z
;
void
foo
()
{
S
s
;
s
.
member2
+
s
.
member1
;
s
.
member3
.
zyx
;
s
.
member2
.
xyz
;
s
.
member2
.
yzy
();
s
.
member2
.
xyz
();
s
.
member2
.
yzy
;
LIGHTING_COMMON_BRDF
()
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment