mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Implement SM1 comparison operators.
This commit is contained in:
committed by
Alexandre Julliard
parent
7b883eef53
commit
e9a4758648
Notes:
Alexandre Julliard
2024-03-14 23:24:02 +01:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/706
@@ -15,7 +15,7 @@ float4 main(in float4 res : COLOR1) : sv_target
|
||||
|
||||
|
||||
% Check that -0.0f is not less than 0.0f
|
||||
[vertex shader todo(sm<4)]
|
||||
[vertex shader]
|
||||
float a;
|
||||
|
||||
void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos : sv_position)
|
||||
@@ -28,11 +28,11 @@ void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos
|
||||
[test]
|
||||
if(sm<4) uniform 0 float 0.0
|
||||
if(sm>=4) uniform 0 float4 0.0 0.0 0.0 0.0
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe all rgba (0.0, 0.0, 0.0, 0.0)
|
||||
|
||||
|
||||
[vertex shader todo(sm<4)]
|
||||
[vertex shader]
|
||||
int a, b;
|
||||
|
||||
void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos : sv_position)
|
||||
@@ -49,12 +49,12 @@ void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos
|
||||
if(sm<4) uniform 0 float 3
|
||||
if(sm<4) uniform 4 float 4
|
||||
if(sm>=4) uniform 0 int4 3 4 0 0
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe all rgba (0.0, 1.0, 0.0, 1.0)
|
||||
if(sm<4) uniform 0 float -2
|
||||
if(sm<4) uniform 4 float -2
|
||||
if(sm>=4) uniform 0 int4 -2 -2 0 0
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe all rgba (1.0, 0.0, 0.0, 1.0)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user