HLSL: Flatten structs for all non-arrayed I/O interfaces.
This commit is contained in:
parent
01109546d8
commit
e29ff3cd65
15 changed files with 749 additions and 862 deletions
|
|
@ -51,10 +51,7 @@ output primitive = line_strip
|
|||
0:15 Constant:
|
||||
0:15 4 (const int)
|
||||
0:15 move second child to first child ( temp int)
|
||||
0:15 ii: direct index for structure ( temp int)
|
||||
0:15 'OutputStream' (layout( location=0) out structure{ temp int ii})
|
||||
0:15 Constant:
|
||||
0:15 0 (const int)
|
||||
0:? 'OutputStream.ii' (layout( location=0) out int)
|
||||
0:15 ii: direct index for structure ( temp int)
|
||||
0:15 's' ( temp structure{ temp float clip0, temp float clip0, temp float cull0, temp uint vpai, temp uint rtai, temp int ii})
|
||||
0:15 Constant:
|
||||
|
|
@ -74,7 +71,7 @@ output primitive = line_strip
|
|||
0:? 'OutputStream.clip0' ( out float Position)
|
||||
0:? 'OutputStream.vpai' ( out uint ViewportIndex)
|
||||
0:? 'OutputStream.rtai' ( out uint Layer)
|
||||
0:? 'OutputStream' (layout( location=0) out structure{ temp int ii})
|
||||
0:? 'OutputStream.ii' (layout( location=0) out int)
|
||||
0:? 'OutputStream.clip0' ( out 1-element array of float ClipDistance)
|
||||
0:? 'OutputStream.cull0' ( out 1-element array of float CullDistance)
|
||||
|
||||
|
|
@ -134,10 +131,7 @@ output primitive = line_strip
|
|||
0:15 Constant:
|
||||
0:15 4 (const int)
|
||||
0:15 move second child to first child ( temp int)
|
||||
0:15 ii: direct index for structure ( temp int)
|
||||
0:15 'OutputStream' (layout( location=0) out structure{ temp int ii})
|
||||
0:15 Constant:
|
||||
0:15 0 (const int)
|
||||
0:? 'OutputStream.ii' (layout( location=0) out int)
|
||||
0:15 ii: direct index for structure ( temp int)
|
||||
0:15 's' ( temp structure{ temp float clip0, temp float clip0, temp float cull0, temp uint vpai, temp uint rtai, temp int ii})
|
||||
0:15 Constant:
|
||||
|
|
@ -157,13 +151,13 @@ output primitive = line_strip
|
|||
0:? 'OutputStream.clip0' ( out float Position)
|
||||
0:? 'OutputStream.vpai' ( out uint ViewportIndex)
|
||||
0:? 'OutputStream.rtai' ( out uint Layer)
|
||||
0:? 'OutputStream' (layout( location=0) out structure{ temp int ii})
|
||||
0:? 'OutputStream.ii' (layout( location=0) out int)
|
||||
0:? 'OutputStream.clip0' ( out 1-element array of float ClipDistance)
|
||||
0:? 'OutputStream.cull0' ( out 1-element array of float CullDistance)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 68
|
||||
// Id's are bound by 65
|
||||
|
||||
Capability Geometry
|
||||
Capability ClipDistance
|
||||
|
|
@ -171,7 +165,7 @@ output primitive = line_strip
|
|||
Capability MultiViewport
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Geometry 4 "main" 20 29 34 40 45 51 60
|
||||
EntryPoint Geometry 4 "main" 20 29 34 40 45 50 57
|
||||
ExecutionMode 4 Triangles
|
||||
ExecutionMode 4 Invocations 1
|
||||
ExecutionMode 4 OutputLineStrip
|
||||
|
|
@ -194,21 +188,19 @@ output primitive = line_strip
|
|||
Name 34 "OutputStream.cull0"
|
||||
Name 40 "OutputStream.vpai"
|
||||
Name 45 "OutputStream.rtai"
|
||||
Name 49 "S"
|
||||
MemberName 49(S) 0 "ii"
|
||||
Name 51 "OutputStream"
|
||||
Name 58 "VertexID"
|
||||
Name 60 "VertexID"
|
||||
Name 62 "OutputStream"
|
||||
Name 63 "param"
|
||||
Name 65 "param"
|
||||
Name 50 "OutputStream.ii"
|
||||
Name 55 "VertexID"
|
||||
Name 57 "VertexID"
|
||||
Name 59 "OutputStream"
|
||||
Name 60 "param"
|
||||
Name 62 "param"
|
||||
Decorate 20(OutputStream.clip0) BuiltIn Position
|
||||
Decorate 29(OutputStream.clip0) BuiltIn ClipDistance
|
||||
Decorate 34(OutputStream.cull0) BuiltIn CullDistance
|
||||
Decorate 40(OutputStream.vpai) BuiltIn ViewportIndex
|
||||
Decorate 45(OutputStream.rtai) BuiltIn Layer
|
||||
Decorate 51(OutputStream) Location 0
|
||||
Decorate 60(VertexID) Location 0
|
||||
Decorate 50(OutputStream.ii) Location 0
|
||||
Decorate 57(VertexID) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
|
|
@ -237,27 +229,25 @@ output primitive = line_strip
|
|||
42: TypePointer Function 6(int)
|
||||
45(OutputStream.rtai): 39(ptr) Variable Output
|
||||
46: 11(int) Constant 4
|
||||
49(S): TypeStruct 11(int)
|
||||
50: TypePointer Output 49(S)
|
||||
51(OutputStream): 50(ptr) Variable Output
|
||||
52: 11(int) Constant 5
|
||||
53: TypePointer Function 11(int)
|
||||
56: TypePointer Output 11(int)
|
||||
59: TypePointer Input 8
|
||||
60(VertexID): 59(ptr) Variable Input
|
||||
49: TypePointer Output 11(int)
|
||||
50(OutputStream.ii): 49(ptr) Variable Output
|
||||
51: 11(int) Constant 5
|
||||
52: TypePointer Function 11(int)
|
||||
56: TypePointer Input 8
|
||||
57(VertexID): 56(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
58(VertexID): 9(ptr) Variable Function
|
||||
62(OutputStream): 13(ptr) Variable Function
|
||||
63(param): 9(ptr) Variable Function
|
||||
65(param): 13(ptr) Variable Function
|
||||
61: 8 Load 60(VertexID)
|
||||
Store 58(VertexID) 61
|
||||
64: 8 Load 58(VertexID)
|
||||
Store 63(param) 64
|
||||
66: 2 FunctionCall 17(@main(u1[3];struct-S-f1-f1-f1-u1-u1-i11;) 63(param) 65(param)
|
||||
67: 12(S) Load 65(param)
|
||||
Store 62(OutputStream) 67
|
||||
55(VertexID): 9(ptr) Variable Function
|
||||
59(OutputStream): 13(ptr) Variable Function
|
||||
60(param): 9(ptr) Variable Function
|
||||
62(param): 13(ptr) Variable Function
|
||||
58: 8 Load 57(VertexID)
|
||||
Store 55(VertexID) 58
|
||||
61: 8 Load 55(VertexID)
|
||||
Store 60(param) 61
|
||||
63: 2 FunctionCall 17(@main(u1[3];struct-S-f1-f1-f1-u1-u1-i11;) 60(param) 62(param)
|
||||
64: 12(S) Load 62(param)
|
||||
Store 59(OutputStream) 64
|
||||
Return
|
||||
FunctionEnd
|
||||
17(@main(u1[3];struct-S-f1-f1-f1-u1-u1-i11;): 2 Function None 14
|
||||
|
|
@ -282,10 +272,9 @@ output primitive = line_strip
|
|||
47: 42(ptr) AccessChain 21(s) 46
|
||||
48: 6(int) Load 47
|
||||
Store 45(OutputStream.rtai) 48
|
||||
54: 53(ptr) AccessChain 21(s) 52
|
||||
55: 11(int) Load 54
|
||||
57: 56(ptr) AccessChain 51(OutputStream) 22
|
||||
Store 57 55
|
||||
53: 52(ptr) AccessChain 21(s) 51
|
||||
54: 11(int) Load 53
|
||||
Store 50(OutputStream.ii) 54
|
||||
EmitVertex
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue