mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Avoid using a different UAV for SM<6 and SM>=6.
This commit is contained in:
parent
296edf0d68
commit
12c457b43f
Notes:
Alexandre Julliard
2024-04-19 22:26:50 +02: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/784
@ -19,12 +19,6 @@ probe all rgba (1, 2, 3, 4)
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
|
||||
[uav 0]
|
||||
format r32 float
|
||||
size (2d, 2, 1)
|
||||
|
||||
0.0 0.0
|
||||
|
||||
[uav 1]
|
||||
format r32 float
|
||||
size (2d, 2, 1)
|
||||
@ -34,7 +28,7 @@ size (2d, 2, 1)
|
||||
% Check that side effects stop happening after discard
|
||||
[pixel shader]
|
||||
uniform float4 x;
|
||||
RWTexture2D<float> y;
|
||||
RWTexture2D<float> y : register(u1);
|
||||
|
||||
float4 main(float4 pos : sv_position) : sv_target
|
||||
{
|
||||
@ -51,14 +45,10 @@ float4 main(float4 pos : sv_position) : sv_target
|
||||
uniform 0 float4 1 2 3 4
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (1, 2, 3, 4)
|
||||
if(sm<6) probe uav 1 (0, 0) r (1.0)
|
||||
if(sm<6) probe uav 1 (1, 0) r (1.0)
|
||||
if(sm>=6) probe uav 0 (0, 0) r (1.0)
|
||||
if(sm>=6) probe uav 0 (1, 0) r (1.0)
|
||||
probe uav 1 (0, 0) r (1.0)
|
||||
probe uav 1 (1, 0) r (1.0)
|
||||
uniform 0 float4 9 8 7 6
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (1, 2, 3, 4)
|
||||
if(sm<6) probe uav 1 (0, 0) r (2.0)
|
||||
if(sm<6) probe uav 1 (1, 0) r (1.0)
|
||||
if(sm>=6) probe uav 0 (0, 0) r (2.0)
|
||||
if(sm>=6) probe uav 0 (1, 0) r (1.0)
|
||||
probe uav 1 (0, 0) r (2.0)
|
||||
probe uav 1 (1, 0) r (1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user