vkd3d-shader/dxil: Implement DX intrinsic SampleIndex.

This commit is contained in:
Conor McCarthy
2024-04-19 13:22:52 +10:00
committed by Henri Verbeet
parent 21681489ed
commit 2996ad6bd2
Notes: Henri Verbeet 2024-11-13 16:30:30 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1257
4 changed files with 48 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ float4 main(uint id : sv_sampleindex) : sv_target
[test]
clear rtv 0 0.0 0.0 0.0 0.0
todo(sm>=6 | msl) draw quad
todo(msl) draw quad
probe (32, 32) rgba(3.75, 0.25, 0.5, 1.0)
todo(msl) copy rtv 0 srv 0
@@ -188,13 +188,13 @@ float4 main(float4 position : sv_position) : sv_target
[test]
uniform 0 uint 0
todo(msl) draw quad
todo(sm>=6) probe (32, 32) rgba(1.0, 0.25, 0.5, 1.0)
probe (32, 32) rgba(1.0, 0.25, 0.5, 1.0)
uniform 0 uint 1
todo(msl) draw quad
todo(sm>=6) probe (32, 32) rgba(2.0, 0.25, 0.5, 1.0)
probe (32, 32) rgba(2.0, 0.25, 0.5, 1.0)
uniform 0 uint 2
todo(msl) draw quad
todo(sm>=6) probe (32, 32) rgba(4.0, 0.25, 0.5, 1.0)
probe (32, 32) rgba(4.0, 0.25, 0.5, 1.0)
uniform 0 uint 3
todo(msl) draw quad
todo(sm>=6) probe (32, 32) rgba(8.0, 0.25, 0.5, 1.0)
probe (32, 32) rgba(8.0, 0.25, 0.5, 1.0)