mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Handle scalar values in ternaries.
This commit is contained in:
committed by
Alexandre Julliard
parent
11112798c8
commit
275901557c
Notes:
Alexandre Julliard
2024-01-18 23:20:41 +01:00
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/571
@@ -282,7 +282,7 @@ draw quad
|
||||
probe all rgba (5.0, 6.0, 7.0, 8.0)
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
[pixel shader]
|
||||
|
||||
uniform float4 cond;
|
||||
uniform float4 a, b;
|
||||
@@ -296,11 +296,11 @@ float4 main() : sv_target
|
||||
uniform 0 float4 1.0 0.0 1.0 0.0
|
||||
uniform 4 float4 1.0 2.0 3.0 4.0
|
||||
uniform 8 float4 5.0 6.0 7.0 8.0
|
||||
todo draw quad
|
||||
draw quad
|
||||
probe all rgba (1.0, 5.0, 1.0, 5.0)
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
[pixel shader]
|
||||
|
||||
// "scalar" can mean any 1-component numeric type.
|
||||
static float4 cond = {1, 0, 0, 1};
|
||||
@@ -313,7 +313,7 @@ float4 main() : sv_target
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
draw quad
|
||||
probe all rgba (2.0, 3.0, 3.0, 2.0)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user