mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
30 lines
477 B
Plaintext
30 lines
477 B
Plaintext
[require]
|
|
shader model >= 4.0
|
|
shader model < 6.0
|
|
|
|
% int and uint are compatible and generate no casts
|
|
[effect]
|
|
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);
|
|
}
|
|
}
|