mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests/hlsl: Add a test for dynamically indexed multisampled texture loads.
This commit is contained in:
parent
67c690aa07
commit
900433e371
Notes:
Henri Verbeet
2024-07-11 00:40:50 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/786
@ -117,3 +117,30 @@ float4 main(float4 pos : sv_position) : sv_target
|
||||
Texture2DMS<float4> s = t;
|
||||
return s.Load(pos.yx, 0);
|
||||
}
|
||||
|
||||
% SM4.0 cannot dynamically index multisampled textures, it relies on loop unrolling.
|
||||
|
||||
[require]
|
||||
shader model >= 4.0
|
||||
shader model < 4.1
|
||||
|
||||
[pixel shader todo]
|
||||
Texture2DMS<float4, 1> t;
|
||||
|
||||
float4 main(float4 pos : sv_position) : sv_target
|
||||
{
|
||||
int i;
|
||||
float4 o;
|
||||
for (i = 0; i < 1; i++)
|
||||
{
|
||||
o = t.Load(pos.xy, i);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
|
||||
probe (1, 0) rgba (0.5, 0.7, 0.6, 0.8)
|
||||
probe (0, 1) rgba (0.6, 0.5, 0.2, 0.1)
|
||||
probe (1, 1) rgba (0.8, 0.0, 0.7, 1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user