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

@@ -303,14 +303,14 @@ gl_FragCoord origin is upper left
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 109
// Id's are bound by 108
Capability Shader
Capability Sampled1D
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 96
EntryPoint Fragment 4 "main" 95
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 9 "txval10"
@@ -330,14 +330,11 @@ gl_FragCoord origin is upper left
MemberName 86(PS_OUTPUT) 0 "Color"
MemberName 86(PS_OUTPUT) 1 "Depth"
Name 88 "psout"
Name 94 "PS_OUTPUT"
MemberName 94(PS_OUTPUT) 0 "Color"
MemberName 94(PS_OUTPUT) 1 "Depth"
Name 96 "@entryPointOutput"
Name 99 "g_tTex1df4a"
Name 102 "g_tTexcdf4"
Name 105 "g_tTexcdi4"
Name 108 "g_tTexcdu4"
Name 95 "@entryPointOutput"
Name 98 "g_tTex1df4a"
Name 101 "g_tTexcdf4"
Name 104 "g_tTexcdi4"
Name 107 "g_tTexcdu4"
Decorate 12(g_tTex1df4) DescriptorSet 0
Decorate 12(g_tTex1df4) Binding 0
Decorate 16(g_sSamp) DescriptorSet 0
@@ -348,13 +345,12 @@ gl_FragCoord origin is upper left
Decorate 71(g_tTex2di4) DescriptorSet 0
Decorate 80(g_tTex2du4) DescriptorSet 0
MemberDecorate 86(PS_OUTPUT) 1 BuiltIn FragDepth
MemberDecorate 94(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 96(@entryPointOutput) Location 0
Decorate 99(g_tTex1df4a) DescriptorSet 0
Decorate 99(g_tTex1df4a) Binding 1
Decorate 102(g_tTexcdf4) DescriptorSet 0
Decorate 105(g_tTexcdi4) DescriptorSet 0
Decorate 108(g_tTexcdu4) DescriptorSet 0
Decorate 95(@entryPointOutput) Location 0
Decorate 98(g_tTex1df4a) DescriptorSet 0
Decorate 98(g_tTex1df4a) Binding 1
Decorate 101(g_tTexcdf4) DescriptorSet 0
Decorate 104(g_tTexcdi4) DescriptorSet 0
Decorate 107(g_tTexcdu4) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -412,19 +408,18 @@ gl_FragCoord origin is upper left
89: 6(float) Constant 1065353216
90: 7(fvec4) ConstantComposite 89 89 89 89
92: TypePointer Function 6(float)
94(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
95: TypePointer Output 94(PS_OUTPUT)
96(@entryPointOutput): 95(ptr) Variable Output
99(g_tTex1df4a): 11(ptr) Variable UniformConstant
100: TypeImage 6(float) Cube array sampled format:Unknown
101: TypePointer UniformConstant 100
102(g_tTexcdf4): 101(ptr) Variable UniformConstant
103: TypeImage 26(int) Cube array sampled format:Unknown
104: TypePointer UniformConstant 103
105(g_tTexcdi4): 104(ptr) Variable UniformConstant
106: TypeImage 40(int) Cube array sampled format:Unknown
107: TypePointer UniformConstant 106
108(g_tTexcdu4): 107(ptr) Variable UniformConstant
94: TypePointer Output 86(PS_OUTPUT)
95(@entryPointOutput): 94(ptr) Variable Output
98(g_tTex1df4a): 11(ptr) Variable UniformConstant
99: TypeImage 6(float) Cube array sampled format:Unknown
100: TypePointer UniformConstant 99
101(g_tTexcdf4): 100(ptr) Variable UniformConstant
102: TypeImage 26(int) Cube array sampled format:Unknown
103: TypePointer UniformConstant 102
104(g_tTexcdi4): 103(ptr) Variable UniformConstant
105: TypeImage 40(int) Cube array sampled format:Unknown
106: TypePointer UniformConstant 105
107(g_tTexcdu4): 106(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
9(txval10): 8(ptr) Variable Function
@@ -468,7 +463,7 @@ gl_FragCoord origin is upper left
Store 91 90
93: 92(ptr) AccessChain 88(psout) 27
Store 93 89
97:86(PS_OUTPUT) Load 88(psout)
Store 96(@entryPointOutput) 97
96:86(PS_OUTPUT) Load 88(psout)
Store 95(@entryPointOutput) 96
Return
FunctionEnd