vkd3d/tests/hlsl/technique-fx_4.shader_test
Nikolay Sivov dbcc4c4e40 vkd3d-shader/hlsl: Parse empty technique declarations.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-11-02 18:23:07 +01:00

121 lines
1.1 KiB
Plaintext

[require]
shader model >= 4.0
shader model < 6.0
[pixel shader fail]
float4 main() : sv_target
{
float4 teChnique = {0, 0, 0, 0};
return teChnique;
}
[pixel shader]
float4 main() : sv_target
{
float4 teChnique10 = {0, 0, 0, 0};
return teChnique10;
}
[pixel shader]
float4 main() : sv_target
{
float4 teChnique11 = {0, 0, 0, 0};
return teChnique11;
}
[effect todo]
technique
{
}
technique10
{
}
% Effects without techniques are allowed for fx_4_0+
[effect todo]
float4 f;
% fx_2_0 keyword is allowed with fx_4_0+ profiles
[effect todo]
technique
{
}
technique11
{
}
[effect fail todo]
technique
{
}
tEchnique10
{
}
[effect fail todo]
technique
{
}
tEchnique11
{
}
[effect fail]
float4 technique;
[effect fail]
float4 technIque;
[effect fail]
float4 technique10;
[effect fail]
float4 technique11;
[effect todo]
float4 technIque10;
[effect todo]
float4 technIque11;
% Regular shaders with technique blocks
[vertex shader todo]
float4 main() : sv_position
{
return 0;
}
technique
{
}
technique10
{
}
technique11
{
}
[pixel shader todo]
float4 main() : sv_target
{
return 0;
}
tEchnique
{
}
technique10
{
}
technique11
{
}