Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
bef7428d
Commit
bef7428d
authored
May 19, 2016
by
Thomas Perl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test cases for vertex attribute reflection
parent
d6e1a5b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
reflection.vert.out
Test/baseResults/reflection.vert.out
+7
-0
reflection.vert
Test/reflection.vert
+12
-0
No files found.
Test/baseResults/reflection.vert.out
View file @
bef7428d
...
...
@@ -95,3 +95,10 @@ abl2[1]: offset -1, type ffffffff, size 4, index -1
abl2[2]: offset -1, type ffffffff, size 4, index -1
abl2[3]: offset -1, type ffffffff, size 4, index -1
Vertex attribute reflection:
attributeFloat: offset 0, type 1406, size 0, index 0
attributeFloat2: offset 0, type 8b50, size 0, index 0
attributeFloat3: offset 0, type 8b51, size 0, index 0
attributeFloat4: offset 0, type 8b52, size 0, index 0
attributeMat4: offset 0, type 8b5c, size 0, index 0
Test/reflection.vert
View file @
bef7428d
...
...
@@ -94,6 +94,12 @@ struct deep3 {
ivec3
v3
;
};
in
float
attributeFloat
;
layout
(
location
=
2
)
in
vec2
attributeFloat2
;
in
vec3
attributeFloat3
;
in
vec4
attributeFloat4
;
in
mat4
attributeMat4
;
uniform
deep3
deepA
[
2
],
deepB
[
2
],
deepC
[
3
],
deepD
[
2
];
const
bool
control
=
true
;
...
...
@@ -167,4 +173,10 @@ void main()
f
+=
arrBl
[
2
].
foo
+
arrBl
[
0
].
foo
;
f
+=
arrBl2
[
i
].
foo
;
f
+=
attributeFloat
;
f
+=
attributeFloat2
.
x
;
f
+=
attributeFloat3
.
x
;
f
+=
attributeFloat4
.
x
;
f
+=
attributeMat4
[
0
][
1
];
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment