vkd3d-shader/hlsl: Support discard for SM1.

This commit is contained in:
Shaun Ren
2024-10-18 21:50:41 -04:00
committed by Henri Verbeet
parent 2a8c1b2823
commit f54797bae5
Notes: Henri Verbeet 2024-10-22 20:54:35 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1198
2 changed files with 43 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ shader model >= 3.0
% Check that derivatives are still computed after discarding
% other pixels in the same quad
[pixel shader todo(sm<4)]
[pixel shader]
float4 main(float4 pos : sv_position) : sv_target
{
if (frac((floor(pos.x) + floor(pos.y)) / 2) == 0.5)