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
|
|
@ -119,8 +119,11 @@ gl_FragCoord origin is upper left
|
|||
0:? Sequence
|
||||
0:51 Pre-Decrement (temp 4-component vector of float)
|
||||
0:51 'input' (in 4-component vector of float)
|
||||
0:54 Branch: Return with expression
|
||||
0:54 'input' (in 4-component vector of float)
|
||||
0:54 Sequence
|
||||
0:54 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:54 'input' (in 4-component vector of float)
|
||||
0:54 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
|
|
@ -247,23 +250,27 @@ gl_FragCoord origin is upper left
|
|||
0:? Sequence
|
||||
0:51 Pre-Decrement (temp 4-component vector of float)
|
||||
0:51 'input' (in 4-component vector of float)
|
||||
0:54 Branch: Return with expression
|
||||
0:54 'input' (in 4-component vector of float)
|
||||
0:54 Sequence
|
||||
0:54 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:54 'input' (in 4-component vector of float)
|
||||
0:54 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 82
|
||||
// Id's are bound by 84
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 8 21 41
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 8 21 41 81
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 8 "c"
|
||||
Name 21 "input"
|
||||
Name 41 "d"
|
||||
Name 81 "@entryPointOutput"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
|
|
@ -278,6 +285,8 @@ gl_FragCoord origin is upper left
|
|||
46: 18(float) Constant 1073741824
|
||||
51: 18(float) Constant 1077936128
|
||||
58: 18(float) Constant 1082130432
|
||||
80: TypePointer Output 19(fvec4)
|
||||
81(@entryPointOutput): 80(ptr) Variable Output
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
9: 6(int) Load 8(c)
|
||||
|
|
@ -370,6 +379,7 @@ gl_FragCoord origin is upper left
|
|||
Store 21(input) 78
|
||||
Branch 71
|
||||
71: Label
|
||||
80: 19(fvec4) Load 21(input)
|
||||
ReturnValue 80
|
||||
82: 19(fvec4) Load 21(input)
|
||||
Store 81(@entryPointOutput) 82
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue