HLSL: Stop including empty structures in the I/O interface. Fix #785.

This commit is contained in:
John Kessenich
2017-08-03 18:41:48 -06:00
parent 6042eb475b
commit cca42a8ea6
23 changed files with 64 additions and 244 deletions

View File

@@ -201,7 +201,6 @@ triangle order = cw
0:? '@entryPointOutput' (layout( location=0) out 3-element array of structure{ temp 3-component vector of float val})
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 3-component vector of float val})
0:? 'cpid' ( in uint InvocationID)
0:? '@patchConstantOutput' (layout( location=1) patch out structure{})
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
@@ -411,18 +410,17 @@ triangle order = cw
0:? '@entryPointOutput' (layout( location=0) out 3-element array of structure{ temp 3-component vector of float val})
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 3-component vector of float val})
0:? 'cpid' ( in uint InvocationID)
0:? '@patchConstantOutput' (layout( location=1) patch out structure{})
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 129
// Id's are bound by 126
Capability Tessellation
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationControl 4 "main" 42 46 49 96 110 128
EntryPoint TessellationControl 4 "main" 42 46 49 96 110
ExecutionMode 4 OutputVertices 3
ExecutionMode 4 Triangles
ExecutionMode 4 SpacingFractionalOdd
@@ -464,8 +462,6 @@ triangle order = cw
Name 96 "@patchConstantOutput_tfactor"
Name 110 "@patchConstantOutput_flInFactor"
Name 114 "o"
Name 126 "hs_pcf_t"
Name 128 "@patchConstantOutput"
Decorate 42(i) Location 0
Decorate 46(cpid) BuiltIn InvocationId
Decorate 49(@entryPointOutput) Location 0
@@ -473,8 +469,6 @@ triangle order = cw
Decorate 96(@patchConstantOutput_tfactor) BuiltIn TessLevelOuter
Decorate 110(@patchConstantOutput_flInFactor) Patch
Decorate 110(@patchConstantOutput_flInFactor) BuiltIn TessLevelInner
Decorate 128(@patchConstantOutput) Patch
Decorate 128(@patchConstantOutput) Location 1
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -520,9 +514,6 @@ triangle order = cw
109: TypePointer Output 108
110(@patchConstantOutput_flInFactor): 109(ptr) Variable Output
121: 6(float) Constant 1082130432
126(hs_pcf_t): TypeStruct
127: TypePointer Output 126(hs_pcf_t)
128(@patchConstantOutput): 127(ptr) Variable Output
4(main): 2 Function None 3
5: Label
40(i): 12(ptr) Variable Function