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
bbd1b0ef
Commit
bbd1b0ef
authored
Aug 05, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Add some location-decoration tests, to aid PR #422.
parent
9f9bad09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
4 deletions
+54
-4
spv.450.tesc.out
Test/baseResults/spv.450.tesc.out
+39
-2
spv.450.tesc
Test/spv.450.tesc
+13
-0
revision.h
glslang/Include/revision.h
+2
-2
No files found.
Test/baseResults/spv.450.tesc.out
View file @
bbd1b0ef
...
@@ -7,12 +7,12 @@ Linked tessellation control stage:
...
@@ -7,12 +7,12 @@ Linked tessellation control stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by
17
// Id's are bound by
24
Capability Tessellation
Capability Tessellation
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint TessellationControl 4 "main" 9 16
EntryPoint TessellationControl 4 "main" 9 16
20 23
ExecutionMode 4 OutputVertices 4
ExecutionMode 4 OutputVertices 4
Source GLSL 450
Source GLSL 450
Name 4 "main"
Name 4 "main"
...
@@ -25,12 +25,42 @@ Linked tessellation control stage:
...
@@ -25,12 +25,42 @@ Linked tessellation control stage:
MemberName 11(TheBlock) 1 "bMem2"
MemberName 11(TheBlock) 1 "bMem2"
MemberName 11(TheBlock) 2 "s"
MemberName 11(TheBlock) 2 "s"
Name 16 "tcBlock"
Name 16 "tcBlock"
Name 17 "S"
MemberName 17(S) 0 "sMem1"
MemberName 17(S) 1 "sMem2"
Name 18 "SingleBlock"
MemberName 18(SingleBlock) 0 "bMem1"
MemberName 18(SingleBlock) 1 "bMem2"
MemberName 18(SingleBlock) 2 "s"
Name 20 "singleBlock"
Name 21 "bn"
MemberName 21(bn) 0 "v1"
MemberName 21(bn) 1 "v2"
MemberName 21(bn) 2 "v3"
Name 23 ""
Decorate 9(patchOut) Patch
Decorate 9(patchOut) Patch
MemberDecorate 11(TheBlock) 0 Patch
MemberDecorate 11(TheBlock) 0 Patch
MemberDecorate 11(TheBlock) 1 Patch
MemberDecorate 11(TheBlock) 1 Patch
MemberDecorate 11(TheBlock) 2 Patch
MemberDecorate 11(TheBlock) 2 Patch
Decorate 11(TheBlock) Block
Decorate 11(TheBlock) Block
Decorate 16(tcBlock) Location 12
Decorate 16(tcBlock) Location 12
MemberDecorate 18(SingleBlock) 0 Patch
MemberDecorate 18(SingleBlock) 0 Location 2
MemberDecorate 18(SingleBlock) 1 Patch
MemberDecorate 18(SingleBlock) 1 Location 3
MemberDecorate 18(SingleBlock) 2 Patch
MemberDecorate 18(SingleBlock) 2 Location 4
Decorate 18(SingleBlock) Block
Decorate 20(singleBlock) Location 2
MemberDecorate 21(bn) 0 Patch
MemberDecorate 21(bn) 0 Location 20
MemberDecorate 21(bn) 0 Component 0
MemberDecorate 21(bn) 1 Patch
MemberDecorate 21(bn) 1 Location 24
MemberDecorate 21(bn) 2 Patch
MemberDecorate 21(bn) 2 Location 25
MemberDecorate 21(bn) 2 Component 0
Decorate 21(bn) Block
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -44,6 +74,13 @@ Linked tessellation control stage:
...
@@ -44,6 +74,13 @@ Linked tessellation control stage:
14: TypeArray 11(TheBlock) 13
14: TypeArray 11(TheBlock) 13
15: TypePointer Output 14
15: TypePointer Output 14
16(tcBlock): 15(ptr) Variable Output
16(tcBlock): 15(ptr) Variable Output
17(S): TypeStruct 6(float) 6(float)
18(SingleBlock): TypeStruct 6(float) 6(float) 17(S)
19: TypePointer Output 18(SingleBlock)
20(singleBlock): 19(ptr) Variable Output
21(bn): TypeStruct 7(fvec4) 7(fvec4) 7(fvec4)
22: TypePointer Output 21(bn)
23: 22(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
Return
Return
...
...
Test/spv.450.tesc
View file @
bbd1b0ef
...
@@ -18,3 +18,15 @@ layout(location = 12) patch out TheBlock {
...
@@ -18,3 +18,15 @@ layout(location = 12) patch out TheBlock {
void main()
void main()
{
{
}
}
layout(location = 2) patch out SingleBlock {
highp float bMem1; // should not see a location decoration
highp float bMem2;
S s; // should see a patch decoration
} singleBlock;
layout(location = 20) patch out bn {
vec4 v1; // location 20
layout(location = 24) vec4 v2; // location 24
vec4 v3; // location 25
};
\ No newline at end of file
glslang/Include/revision.h
View file @
bbd1b0ef
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "SPIRV99.138
3
"
#define GLSLANG_REVISION "SPIRV99.138
4
"
#define GLSLANG_DATE "0
4
-Aug-2016"
#define GLSLANG_DATE "0
5
-Aug-2016"
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