HLSL: Register all entry-point in/out as part of the interface.

This makes the interface be invariant, whether or not individual
variables are used.
This commit is contained in:
John Kessenich 2016-09-12 11:55:47 -06:00
parent b3e24e4359
commit deb4940c17
98 changed files with 448 additions and 19 deletions

View file

@ -321,6 +321,12 @@ local_size = (1, 1, 1)
0:? 'gs_ua4' (global 4-component vector of uint)
0:? 'gs_ub4' (global 4-component vector of uint)
0:? 'gs_uc4' (global 4-component vector of uint)
0:? '@entryPointOutput' (out 4-component vector of float)
0:? 'inF0' (layout(location=0 ) in 4-component vector of float)
0:? 'inF1' (layout(location=1 ) in 4-component vector of float)
0:? 'inF2' (layout(location=2 ) in 4-component vector of float)
0:? 'inU0' (layout(location=3 ) in 4-component vector of uint)
0:? 'inU1' (layout(location=4 ) in 4-component vector of uint)
Linked compute stage:
@ -648,15 +654,21 @@ local_size = (1, 1, 1)
0:? 'gs_ua4' (global 4-component vector of uint)
0:? 'gs_ub4' (global 4-component vector of uint)
0:? 'gs_uc4' (global 4-component vector of uint)
0:? '@entryPointOutput' (out 4-component vector of float)
0:? 'inF0' (layout(location=0 ) in 4-component vector of float)
0:? 'inF1' (layout(location=1 ) in 4-component vector of float)
0:? 'inF2' (layout(location=2 ) in 4-component vector of float)
0:? 'inU0' (layout(location=3 ) in 4-component vector of uint)
0:? 'inU1' (layout(location=4 ) in 4-component vector of uint)
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 219
// Id's are bound by 224
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "ComputeShaderFunction" 175 215
EntryPoint GLCompute 4 "ComputeShaderFunction" 175 215 219 220 222 223
ExecutionMode 4 LocalSize 1 1 1
Name 4 "ComputeShaderFunction"
Name 16 "ComputeShaderFunctionS(f1;f1;f1;u1;u1;"
@ -699,8 +711,16 @@ local_size = (1, 1, 1)
Name 185 "out_u4"
Name 193 "gs_uc4"
Name 215 "@entryPointOutput"
Name 219 "inF1"
Name 220 "inF2"
Name 222 "inU0"
Name 223 "inU1"
Decorate 175(inF0) Location 0
Decorate 215(@entryPointOutput) Location 0
Decorate 219(inF1) Location 1
Decorate 220(inF2) Location 2
Decorate 222(inU0) Location 3
Decorate 223(inU1) Location 4
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -753,6 +773,11 @@ local_size = (1, 1, 1)
215(@entryPointOutput): 214(ptr) Variable Output
216: 6(float) Constant 1082130432
217: 173(fvec4) ConstantComposite 128 129 169 216
219(inF1): 174(ptr) Variable Input
220(inF2): 174(ptr) Variable Input
221: TypePointer Input 178(ivec4)
222(inU0): 221(ptr) Variable Input
223(inU1): 221(ptr) Variable Input
4(ComputeShaderFunction): 2 Function None 3
5: Label
185(out_u4): 184(ptr) Variable Function