WIP: HLSL: preserve empty structures after splitting

This commit is contained in:
steve-lunarg
2017-03-09 19:10:57 -07:00
parent 6e1d50a7a2
commit 4198b8bfc4
8 changed files with 72 additions and 20 deletions

View File

@@ -86,6 +86,7 @@ output primitive = triangle_strip
0:? 'i' (temp 3-element array of structure{temp 4-component vector of float pos})
0:? 'ts' (temp structure{temp 4-component vector of float pos})
0:? Linker Objects
0:? 'i' (layout(location=0 ) in 3-element array of structure{})
Linked geometry stage:
@@ -178,15 +179,16 @@ output primitive = triangle_strip
0:? 'i' (temp 3-element array of structure{temp 4-component vector of float pos})
0:? 'ts' (temp structure{temp 4-component vector of float pos})
0:? Linker Objects
0:? 'i' (layout(location=0 ) in 3-element array of structure{})
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 63
// Id's are bound by 67
Capability Geometry
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 4 "main" 46
EntryPoint Geometry 4 "main" 46 66
ExecutionMode 4 Triangles
ExecutionMode 4 Invocations 1
ExecutionMode 4 OutputTriangleStrip
@@ -206,7 +208,10 @@ output primitive = triangle_strip
Name 58 "ts"
Name 59 "param"
Name 61 "param"
Name 63 "PS_IN"
Name 66 "i"
Decorate 46(i_pos) BuiltIn Position
Decorate 66(i) Location 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -231,6 +236,10 @@ output primitive = triangle_strip
46(i_pos): 45(ptr) Variable Input
47: TypePointer Input 7(fvec4)
54: 20(int) Constant 2
63(PS_IN): TypeStruct
64: TypeArray 63(PS_IN) 10
65: TypePointer Input 64
66(i): 65(ptr) Variable Input
4(main): 2 Function None 3
5: Label
43(i): 12(ptr) Variable Function