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:
@@ -389,13 +389,13 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 161
|
||||
// Id's are bound by 160
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 156
|
||||
EntryPoint Fragment 4 "main" 155
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
@@ -427,12 +427,9 @@ gl_FragCoord origin is upper left
|
||||
MemberName 144(PS_OUTPUT) 0 "Color"
|
||||
MemberName 144(PS_OUTPUT) 1 "Depth"
|
||||
Name 146 "psout"
|
||||
Name 154 "PS_OUTPUT"
|
||||
MemberName 154(PS_OUTPUT) 0 "Color"
|
||||
MemberName 154(PS_OUTPUT) 1 "Depth"
|
||||
Name 156 "@entryPointOutput"
|
||||
Name 159 "g_sSamp2d"
|
||||
Name 160 "g_tTex1df4a"
|
||||
Name 155 "@entryPointOutput"
|
||||
Name 158 "g_sSamp2d"
|
||||
Name 159 "g_tTex1df4a"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 12(g_tTex1df4) Binding 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
@@ -449,11 +446,10 @@ gl_FragCoord origin is upper left
|
||||
Decorate 129(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 138(g_tTexcdu4) DescriptorSet 0
|
||||
MemberDecorate 144(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
MemberDecorate 154(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 156(@entryPointOutput) Location 0
|
||||
Decorate 159(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 160(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 160(g_tTex1df4a) Binding 1
|
||||
Decorate 155(@entryPointOutput) Location 0
|
||||
Decorate 158(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 159(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 159(g_tTex1df4a) Binding 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -541,11 +537,10 @@ gl_FragCoord origin is upper left
|
||||
149: 7(fvec4) ConstantComposite 148 148 148 148
|
||||
151: 23(int) Constant 1
|
||||
152: TypePointer Function 6(float)
|
||||
154(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
155: TypePointer Output 154(PS_OUTPUT)
|
||||
156(@entryPointOutput): 155(ptr) Variable Output
|
||||
159(g_sSamp2d): 15(ptr) Variable UniformConstant
|
||||
160(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
154: TypePointer Output 144(PS_OUTPUT)
|
||||
155(@entryPointOutput): 154(ptr) Variable Output
|
||||
158(g_sSamp2d): 15(ptr) Variable UniformConstant
|
||||
159(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
@@ -625,7 +620,7 @@ gl_FragCoord origin is upper left
|
||||
Store 150 149
|
||||
153: 152(ptr) AccessChain 146(psout) 151
|
||||
Store 153 148
|
||||
157:144(PS_OUTPUT) Load 146(psout)
|
||||
Store 156(@entryPointOutput) 157
|
||||
156:144(PS_OUTPUT) Load 146(psout)
|
||||
Store 155(@entryPointOutput) 156
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user