HLSL: Emulate write-to-output on return-from-entry-point, for return value.
This fixes issue #487 and #480. It also correctly handles output parameters from the entry point.
This commit is contained in:
parent
81cd764b5f
commit
6a70eb7161
91 changed files with 5158 additions and 4130 deletions
|
|
@ -52,12 +52,15 @@ local_size = (1, 1, 1)
|
|||
0:158 'inF2' (in 4-component vector of float)
|
||||
0:158 'inI0' (in 4-component vector of int)
|
||||
0:? Sequence
|
||||
0:199 Branch: Return with expression
|
||||
0:? Constant:
|
||||
0:? 1.000000
|
||||
0:? 2.000000
|
||||
0:? 3.000000
|
||||
0:? 4.000000
|
||||
0:199 Sequence
|
||||
0:199 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? Constant:
|
||||
0:? 1.000000
|
||||
0:? 2.000000
|
||||
0:? 3.000000
|
||||
0:? 4.000000
|
||||
0:199 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
|
|
@ -117,22 +120,25 @@ local_size = (1, 1, 1)
|
|||
0:158 'inF2' (in 4-component vector of float)
|
||||
0:158 'inI0' (in 4-component vector of int)
|
||||
0:? Sequence
|
||||
0:199 Branch: Return with expression
|
||||
0:? Constant:
|
||||
0:? 1.000000
|
||||
0:? 2.000000
|
||||
0:? 3.000000
|
||||
0:? 4.000000
|
||||
0:199 Sequence
|
||||
0:199 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? Constant:
|
||||
0:? 1.000000
|
||||
0:? 2.000000
|
||||
0:? 3.000000
|
||||
0:? 4.000000
|
||||
0:199 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 63
|
||||
// Id's are bound by 65
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint GLCompute 4 "ComputeShaderFunction"
|
||||
EntryPoint GLCompute 4 "ComputeShaderFunction" 61
|
||||
ExecutionMode 4 LocalSize 1 1 1
|
||||
Name 4 "ComputeShaderFunction"
|
||||
Name 15 "ComputeShaderFunctionS(f1;f1;f1;i1;"
|
||||
|
|
@ -155,6 +161,7 @@ local_size = (1, 1, 1)
|
|||
Name 40 "inF1"
|
||||
Name 41 "inF2"
|
||||
Name 42 "inI0"
|
||||
Name 61 "@entryPointOutput"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -179,11 +186,14 @@ local_size = (1, 1, 1)
|
|||
55: 6(float) Constant 1077936128
|
||||
56: 34(fvec3) ConstantComposite 50 51 55
|
||||
59: TypeVector 6(float) 4
|
||||
60: 6(float) Constant 1082130432
|
||||
61: 59(fvec4) ConstantComposite 50 51 55 60
|
||||
60: TypePointer Output 59(fvec4)
|
||||
61(@entryPointOutput): 60(ptr) Variable Output
|
||||
62: 6(float) Constant 1082130432
|
||||
63: 59(fvec4) ConstantComposite 50 51 55 62
|
||||
4(ComputeShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
ReturnValue 61
|
||||
Store 61(@entryPointOutput) 63
|
||||
Return
|
||||
FunctionEnd
|
||||
15(ComputeShaderFunctionS(f1;f1;f1;i1;): 6(float) Function None 10
|
||||
11(inF0): 7(ptr) FunctionParameter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue