vkd3d/tests/hlsl/effect-assignments-fx_5.shader_test
Nikolay Sivov 994e994231 vkd3d-shader/fx: Handle assignments with array RHS indexed with a constant or a single variable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2024-10-02 22:05:46 +02:00

52 lines
654 B
Plaintext

[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]);
}
}
[effect]
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]);
}
}
[effect fail]
uint stencil_refs[2];
technique11
{
pass
{
SetDepthStencilState(NULL, stencil_refs[10]);
}
}