Don't use roundEven() to implement round() in DX9 compatibility mode
This commit is contained in:
60
Test/baseResults/hlsl.round.dx10.frag.out
Normal file
60
Test/baseResults/hlsl.round.dx10.frag.out
Normal file
@@ -0,0 +1,60 @@
|
||||
hlsl.round.dx10.frag
|
||||
Shader version: 500
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' ( in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Branch: Return with expression
|
||||
0:3 roundEven ( temp 4-component vector of float)
|
||||
0:3 'input' ( in 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
WARNING: Linking fragment stage: Entry point not found
|
||||
|
||||
Shader version: 500
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' ( in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Branch: Return with expression
|
||||
0:3 roundEven ( temp 4-component vector of float)
|
||||
0:3 'input' ( in 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000a
|
||||
// Id's are bound by 17
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main"
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source HLSL 500
|
||||
Name 4 "main"
|
||||
Name 11 "PixelShaderFunction(vf4;"
|
||||
Name 10 "input"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Function 7(fvec4)
|
||||
9: TypeFunction 7(fvec4) 8(ptr)
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
11(PixelShaderFunction(vf4;): 7(fvec4) Function None 9
|
||||
10(input): 8(ptr) FunctionParameter
|
||||
12: Label
|
||||
13: 7(fvec4) Load 10(input)
|
||||
14: 7(fvec4) ExtInst 1(GLSL.std.450) 2(RoundEven) 13
|
||||
ReturnValue 14
|
||||
FunctionEnd
|
||||
70
Test/baseResults/hlsl.round.dx9.frag.out
Normal file
70
Test/baseResults/hlsl.round.dx9.frag.out
Normal file
@@ -0,0 +1,70 @@
|
||||
hlsl.round.dx9.frag
|
||||
Shader version: 500
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' ( in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Branch: Return with expression
|
||||
0:3 round ( temp 4-component vector of float)
|
||||
0:3 'input' ( in 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
WARNING: Linking fragment stage: Entry point not found
|
||||
|
||||
Shader version: 500
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' ( in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Branch: Return with expression
|
||||
0:3 round ( temp 4-component vector of float)
|
||||
0:3 'input' ( in 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000a
|
||||
// Id's are bound by 18
|
||||
|
||||
Capability Shader
|
||||
2: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 5 "main"
|
||||
ExecutionMode 5 OriginUpperLeft
|
||||
1: String ""
|
||||
Source HLSL 500 1 "// OpModuleProcessed auto-map-locations
|
||||
// OpModuleProcessed auto-map-bindings
|
||||
// OpModuleProcessed entry-point main
|
||||
// OpModuleProcessed client vulkan100
|
||||
// OpModuleProcessed target-env vulkan1.0
|
||||
// OpModuleProcessed keep-uncalled
|
||||
// OpModuleProcessed hlsl-offsets
|
||||
#line 1
|
||||
"
|
||||
Name 5 "main"
|
||||
Name 12 "PixelShaderFunction(vf4;"
|
||||
Name 11 "input"
|
||||
3: TypeVoid
|
||||
4: TypeFunction 3
|
||||
7: TypeFloat 32
|
||||
8: TypeVector 7(float) 4
|
||||
9: TypePointer Function 8(fvec4)
|
||||
10: TypeFunction 8(fvec4) 9(ptr)
|
||||
5(main): 3 Function None 4
|
||||
6: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
12(PixelShaderFunction(vf4;): 8(fvec4) Function None 10
|
||||
11(input): 9(ptr) FunctionParameter
|
||||
13: Label
|
||||
Line 1 3 0
|
||||
14: 8(fvec4) Load 11(input)
|
||||
15: 8(fvec4) ExtInst 2(GLSL.std.450) 1(Round) 14
|
||||
ReturnValue 15
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user