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:
@@ -89,21 +89,19 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 35
|
||||
// Id's are bound by 34
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 32
|
||||
EntryPoint Fragment 4 "main" 31
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 22 "PS_OUTPUT"
|
||||
MemberName 22(PS_OUTPUT) 0 "color"
|
||||
Name 24 "ps_output"
|
||||
Name 30 "PS_OUTPUT"
|
||||
MemberName 30(PS_OUTPUT) 0 "color"
|
||||
Name 32 "@entryPointOutput"
|
||||
Decorate 32(@entryPointOutput) Location 0
|
||||
Name 31 "@entryPointOutput"
|
||||
Decorate 31(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
@@ -128,15 +126,14 @@ gl_FragCoord origin is upper left
|
||||
26: 13(float) Constant 1065353216
|
||||
27: 21(fvec4) ConstantComposite 26 26 26 26
|
||||
28: TypePointer Function 21(fvec4)
|
||||
30(PS_OUTPUT): TypeStruct 21(fvec4)
|
||||
31: TypePointer Output 30(PS_OUTPUT)
|
||||
32(@entryPointOutput): 31(ptr) Variable Output
|
||||
30: TypePointer Output 22(PS_OUTPUT)
|
||||
31(@entryPointOutput): 30(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
24(ps_output): 23(ptr) Variable Function
|
||||
29: 28(ptr) AccessChain 24(ps_output) 25
|
||||
Store 29 27
|
||||
33:22(PS_OUTPUT) Load 24(ps_output)
|
||||
Store 32(@entryPointOutput) 33
|
||||
32:22(PS_OUTPUT) Load 24(ps_output)
|
||||
Store 31(@entryPointOutput) 32
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user