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:
@@ -285,14 +285,14 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 135
|
||||
// Id's are bound by 134
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 131
|
||||
EntryPoint Fragment 4 "main" 130
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
@@ -318,11 +318,8 @@ gl_FragCoord origin is upper left
|
||||
MemberName 120(PS_OUTPUT) 0 "Color"
|
||||
MemberName 120(PS_OUTPUT) 1 "Depth"
|
||||
Name 122 "psout"
|
||||
Name 129 "PS_OUTPUT"
|
||||
MemberName 129(PS_OUTPUT) 0 "Color"
|
||||
MemberName 129(PS_OUTPUT) 1 "Depth"
|
||||
Name 131 "@entryPointOutput"
|
||||
Name 134 "g_tTex1df4a"
|
||||
Name 130 "@entryPointOutput"
|
||||
Name 133 "g_tTex1df4a"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 12(g_tTex1df4) Binding 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
@@ -336,10 +333,9 @@ gl_FragCoord origin is upper left
|
||||
Decorate 100(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 110(g_tTexcdu4) DescriptorSet 0
|
||||
MemberDecorate 120(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
MemberDecorate 129(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 131(@entryPointOutput) Location 0
|
||||
Decorate 134(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 134(g_tTex1df4a) Binding 1
|
||||
Decorate 130(@entryPointOutput) Location 0
|
||||
Decorate 133(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 133(g_tTex1df4a) Binding 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -417,10 +413,9 @@ gl_FragCoord origin is upper left
|
||||
124: 7(fvec4) ConstantComposite 117 117 117 117
|
||||
126: 25(int) Constant 1
|
||||
127: TypePointer Function 6(float)
|
||||
129(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
130: TypePointer Output 129(PS_OUTPUT)
|
||||
131(@entryPointOutput): 130(ptr) Variable Output
|
||||
134(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
129: TypePointer Output 120(PS_OUTPUT)
|
||||
130(@entryPointOutput): 129(ptr) Variable Output
|
||||
133(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
@@ -482,7 +477,7 @@ gl_FragCoord origin is upper left
|
||||
Store 125 124
|
||||
128: 127(ptr) AccessChain 122(psout) 126
|
||||
Store 128 117
|
||||
132:120(PS_OUTPUT) Load 122(psout)
|
||||
Store 131(@entryPointOutput) 132
|
||||
131:120(PS_OUTPUT) Load 122(psout)
|
||||
Store 130(@entryPointOutput) 131
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user