mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add support for sample index argument in Load().
This commit is contained in:
committed by
Alexandre Julliard
parent
dc41444941
commit
dfa0076473
Notes:
Alexandre Julliard
2023-05-22 23:19:15 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/135
@@ -35,3 +35,18 @@ probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
|
||||
probe (1, 0) rgba (0.6, 0.5, 0.2, 0.1)
|
||||
probe (0, 1) rgba (0.5, 0.7, 0.6, 0.8)
|
||||
probe (1, 1) rgba (0.8, 0.0, 0.7, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
Texture2DMS<float4, 1> t;
|
||||
|
||||
float4 main(float4 pos : sv_position) : sv_target
|
||||
{
|
||||
return t.Load(pos.yx, 0);
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
|
||||
probe (1, 0) rgba (0.6, 0.5, 0.2, 0.1)
|
||||
probe (0, 1) rgba (0.5, 0.7, 0.6, 0.8)
|
||||
probe (1, 1) rgba (0.8, 0.0, 0.7, 1.0)
|
||||
|
Reference in New Issue
Block a user