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:
parent
5e56423046
commit
f2b7f3353b
61 changed files with 2057 additions and 2308 deletions
|
|
@ -107,12 +107,12 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 47
|
||||
// Id's are bound by 46
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 44
|
||||
EntryPoint Fragment 4 "main" 43
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 6 "Test1("
|
||||
|
|
@ -129,10 +129,8 @@ gl_FragCoord origin is upper left
|
|||
Name 34 "PS_OUTPUT"
|
||||
MemberName 34(PS_OUTPUT) 0 "color"
|
||||
Name 36 "ps_output"
|
||||
Name 42 "PS_OUTPUT"
|
||||
MemberName 42(PS_OUTPUT) 0 "color"
|
||||
Name 44 "@entryPointOutput"
|
||||
Decorate 44(@entryPointOutput) Location 0
|
||||
Name 43 "@entryPointOutput"
|
||||
Decorate 43(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
8: TypeFloat 32
|
||||
|
|
@ -162,17 +160,16 @@ gl_FragCoord origin is upper left
|
|||
38: 37(int) Constant 0
|
||||
39: 33(fvec4) ConstantComposite 13 13 13 13
|
||||
40: TypePointer Function 33(fvec4)
|
||||
42(PS_OUTPUT): TypeStruct 33(fvec4)
|
||||
43: TypePointer Output 42(PS_OUTPUT)
|
||||
44(@entryPointOutput): 43(ptr) Variable Output
|
||||
42: TypePointer Output 34(PS_OUTPUT)
|
||||
43(@entryPointOutput): 42(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
36(ps_output): 35(ptr) Variable Function
|
||||
32: 2 FunctionCall 6(Test1()
|
||||
41: 40(ptr) AccessChain 36(ps_output) 38
|
||||
Store 41 39
|
||||
45:34(PS_OUTPUT) Load 36(ps_output)
|
||||
Store 44(@entryPointOutput) 45
|
||||
44:34(PS_OUTPUT) Load 36(ps_output)
|
||||
Store 43(@entryPointOutput) 44
|
||||
Return
|
||||
FunctionEnd
|
||||
6(Test1(): 2 Function None 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue