SPV: Tighten up number of struct-types declared based on decoration.

Takes some pressure off of issue #304.
Structures don't inherit locations and then explicitly decorate
members with them, so removed this reason to have another instance
of a structure type.
This commit is contained in:
John Kessenich 2016-09-01 17:05:23 -06:00
parent 5e56423046
commit f2b7f3353b
61 changed files with 2057 additions and 2308 deletions

View file

@ -225,14 +225,14 @@ gl_FragCoord origin is upper left
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 113
// Id's are bound by 112
Capability Shader
Capability Sampled1D
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 100
EntryPoint Fragment 4 "main" 99
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 9 "txval20"
@ -252,14 +252,11 @@ gl_FragCoord origin is upper left
MemberName 90(PS_OUTPUT) 0 "Color"
MemberName 90(PS_OUTPUT) 1 "Depth"
Name 92 "psout"
Name 98 "PS_OUTPUT"
MemberName 98(PS_OUTPUT) 0 "Color"
MemberName 98(PS_OUTPUT) 1 "Depth"
Name 100 "@entryPointOutput"
Name 105 "g_tTex1df4a"
Name 106 "g_tTex1df4"
Name 109 "g_tTex1di4a"
Name 112 "g_tTex1du4a"
Name 99 "@entryPointOutput"
Name 104 "g_tTex1df4a"
Name 105 "g_tTex1df4"
Name 108 "g_tTex1di4a"
Name 111 "g_tTex1du4a"
Decorate 12(g_tTex2df4a) DescriptorSet 0
Decorate 16(g_sSamp) DescriptorSet 0
Decorate 16(g_sSamp) Binding 0
@ -269,14 +266,13 @@ gl_FragCoord origin is upper left
Decorate 70(g_tTexcdi4a) DescriptorSet 0
Decorate 80(g_tTexcdu4a) DescriptorSet 0
MemberDecorate 90(PS_OUTPUT) 1 BuiltIn FragDepth
MemberDecorate 98(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 100(@entryPointOutput) Location 0
Decorate 105(g_tTex1df4a) DescriptorSet 0
Decorate 105(g_tTex1df4a) Binding 1
Decorate 106(g_tTex1df4) DescriptorSet 0
Decorate 106(g_tTex1df4) Binding 0
Decorate 109(g_tTex1di4a) DescriptorSet 0
Decorate 112(g_tTex1du4a) DescriptorSet 0
Decorate 99(@entryPointOutput) Location 0
Decorate 104(g_tTex1df4a) DescriptorSet 0
Decorate 104(g_tTex1df4a) Binding 1
Decorate 105(g_tTex1df4) DescriptorSet 0
Decorate 105(g_tTex1df4) Binding 0
Decorate 108(g_tTex1di4a) DescriptorSet 0
Decorate 111(g_tTex1du4a) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -338,19 +334,18 @@ gl_FragCoord origin is upper left
93: 7(fvec4) ConstantComposite 87 87 87 87
95: 25(int) Constant 1
96: TypePointer Function 6(float)
98(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
99: TypePointer Output 98(PS_OUTPUT)
100(@entryPointOutput): 99(ptr) Variable Output
103: TypeImage 6(float) 1D array sampled format:Unknown
104: TypePointer UniformConstant 103
105(g_tTex1df4a): 104(ptr) Variable UniformConstant
106(g_tTex1df4): 104(ptr) Variable UniformConstant
107: TypeImage 25(int) 1D array sampled format:Unknown
108: TypePointer UniformConstant 107
109(g_tTex1di4a): 108(ptr) Variable UniformConstant
110: TypeImage 42(int) 1D array sampled format:Unknown
111: TypePointer UniformConstant 110
112(g_tTex1du4a): 111(ptr) Variable UniformConstant
98: TypePointer Output 90(PS_OUTPUT)
99(@entryPointOutput): 98(ptr) Variable Output
102: TypeImage 6(float) 1D array sampled format:Unknown
103: TypePointer UniformConstant 102
104(g_tTex1df4a): 103(ptr) Variable UniformConstant
105(g_tTex1df4): 103(ptr) Variable UniformConstant
106: TypeImage 25(int) 1D array sampled format:Unknown
107: TypePointer UniformConstant 106
108(g_tTex1di4a): 107(ptr) Variable UniformConstant
109: TypeImage 42(int) 1D array sampled format:Unknown
110: TypePointer UniformConstant 109
111(g_tTex1du4a): 110(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
9(txval20): 8(ptr) Variable Function
@ -394,7 +389,7 @@ gl_FragCoord origin is upper left
Store 94 93
97: 96(ptr) AccessChain 92(psout) 95
Store 97 87
101:90(PS_OUTPUT) Load 92(psout)
Store 100(@entryPointOutput) 101
100:90(PS_OUTPUT) Load 92(psout)
Store 99(@entryPointOutput) 100
Return
FunctionEnd