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
|
|
@ -27,9 +27,12 @@ gl_FragCoord origin is upper left
|
|||
0:7 Construct uvec2 (temp 2-component vector of uint)
|
||||
0:7 'inU1a' (in uint)
|
||||
0:7 'inU1b' (in uint)
|
||||
0:9 Branch: Return with expression
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp float)
|
||||
0:? '@entryPointOutput' (out float)
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
|
|
@ -64,20 +67,23 @@ gl_FragCoord origin is upper left
|
|||
0:7 Construct uvec2 (temp 2-component vector of uint)
|
||||
0:7 'inU1a' (in uint)
|
||||
0:7 'inU1b' (in uint)
|
||||
0:9 Branch: Return with expression
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp float)
|
||||
0:? '@entryPointOutput' (out float)
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 30
|
||||
// Id's are bound by 32
|
||||
|
||||
Capability Shader
|
||||
Capability Float64
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 10 12 14 20 22
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 10 12 14 20 22 29
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 8 "r00"
|
||||
|
|
@ -87,6 +93,7 @@ gl_FragCoord origin is upper left
|
|||
Name 17 "r01"
|
||||
Name 20 "inU1a"
|
||||
Name 22 "inU1b"
|
||||
Name 29 "@entryPointOutput"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 64
|
||||
|
|
@ -101,7 +108,9 @@ gl_FragCoord origin is upper left
|
|||
22(inU1b): 19(ptr) Variable Input
|
||||
24: TypeVector 18(int) 2
|
||||
27: TypeFloat 32
|
||||
28: 27(float) Constant 0
|
||||
28: TypePointer Output 27(float)
|
||||
29(@entryPointOutput): 28(ptr) Variable Output
|
||||
30: 27(float) Constant 0
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
8(r00): 7(ptr) Variable Function
|
||||
|
|
@ -116,5 +125,6 @@ gl_FragCoord origin is upper left
|
|||
25: 24(ivec2) CompositeConstruct 21 23
|
||||
26: 6(float) Bitcast 25
|
||||
Store 17(r01) 26
|
||||
ReturnValue 28
|
||||
Store 29(@entryPointOutput) 30
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue