tests/hlsl: Add some fx_4_0 state tests.

This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-03-12 18:44:34 +01:00
committed by Henri Verbeet
parent f576ecc992
commit 8866a43b2d
Notes: Henri Verbeet 2025-04-08 20:54:58 +02:00
Approved-by: Nikolay Sivov (@nsivov)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1420
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
[require]
shader model >= 4.0
shader model < 6.0
% int and uint are compatible and generate no casts
[effect todo]
int stencil = 1;
DepthStencilState depth {
DepthEnable = TRUE;
};
technique10 foo {
pass p0 {
SetDepthStencilState(depth, stencil);
}
}
% float to uint generates a cast
[effect todo]
float stencil = 1.0;
DepthStencilState depth {
DepthEnable = TRUE;
};
technique10 foo {
pass p0 {
SetDepthStencilState(depth, stencil);
}
}