2024-09-22 01:12:05 -07:00
|
|
|
[require]
|
|
|
|
shader model >= 5.0
|
|
|
|
shader model < 6.0
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint stencil_refs[2];
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
pass
|
|
|
|
{
|
|
|
|
SetDepthStencilState(NULL, stencil_refs[10]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-22 02:09:22 -07:00
|
|
|
[effect]
|
2024-09-22 01:12:05 -07:00
|
|
|
uint stencil_ref;
|
|
|
|
uint stencil_refs[2];
|
|
|
|
uint index;
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
pass
|
|
|
|
{
|
|
|
|
SetDepthStencilState(NULL, stencil_ref);
|
|
|
|
}
|
|
|
|
pass
|
|
|
|
{
|
|
|
|
SetDepthStencilState(NULL, stencil_refs[1]);
|
|
|
|
}
|
|
|
|
pass
|
|
|
|
{
|
|
|
|
SetDepthStencilState(NULL, stencil_refs[index]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-22 02:09:22 -07:00
|
|
|
[effect fail]
|
2024-09-22 01:12:05 -07:00
|
|
|
uint stencil_refs[2];
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
pass
|
|
|
|
{
|
|
|
|
SetDepthStencilState(NULL, stencil_refs[10]);
|
|
|
|
}
|
|
|
|
}
|