mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Add basic RWTexture1DArray tests.
This commit is contained in:
parent
c837f007e2
commit
ae9d29a377
Notes:
Alexandre Julliard
2023-10-19 23:22:47 +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/419
@ -180,6 +180,24 @@ float4 main() : sv_target1
|
||||
return 0;
|
||||
}
|
||||
|
||||
% RWTexture1DArray types
|
||||
[pixel shader fail(sm>=6) todo]
|
||||
struct s
|
||||
{
|
||||
float3 a;
|
||||
};
|
||||
|
||||
RWTexture1DArray<float4> u : register(u2);
|
||||
RWTexture1DArray<float> u1;
|
||||
RWTexture1DArray<float2x2> u2;
|
||||
RWTexture1DArray<struct s> u3;
|
||||
|
||||
float4 main() : sv_target1
|
||||
{
|
||||
u[int2(0, 0)] = float4(11.1, 12.2, 13.3, 14.4);
|
||||
return 0;
|
||||
}
|
||||
|
||||
% RWTexture2D types
|
||||
[pixel shader fail(sm>=6)]
|
||||
struct s
|
||||
@ -275,6 +293,14 @@ float4 main() : sv_target1
|
||||
return 0;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
RWTexture1DArray<Texture2D> u;
|
||||
|
||||
float4 main() : sv_target1
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
RWTexture2D<Texture2D> u;
|
||||
|
||||
@ -310,6 +336,19 @@ struct s
|
||||
Texture2D t;
|
||||
};
|
||||
|
||||
RWTexture1DArray<struct s> u;
|
||||
|
||||
float4 main() : sv_target1
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
struct s
|
||||
{
|
||||
Texture2D t;
|
||||
};
|
||||
|
||||
RWTexture2D<struct s> u;
|
||||
|
||||
float4 main() : sv_target1
|
||||
|
Loading…
x
Reference in New Issue
Block a user