mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests/hlsl: Add some fx_4_0 state tests.
This commit is contained in:
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
29
tests/hlsl/effect-pass-states-fx_4.shader_test
Normal file
29
tests/hlsl/effect-pass-states-fx_4.shader_test
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user