mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add some tests for 'technique' token behaviour.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
214d44fb11
commit
8e5c8c1725
Notes:
Alexandre Julliard
2023-10-31 22:39:21 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/114
@ -170,6 +170,9 @@ vkd3d_shader_tests = \
|
||||
tests/hlsl/swizzle-constant-prop.shader_test \
|
||||
tests/hlsl/swizzle-matrix.shader_test \
|
||||
tests/hlsl/swizzles.shader_test \
|
||||
tests/hlsl/technique-fx_2.shader_test \
|
||||
tests/hlsl/technique-fx_4.shader_test \
|
||||
tests/hlsl/technique-fx_5.shader_test \
|
||||
tests/hlsl/ternary.shader_test \
|
||||
tests/hlsl/texture-load-offset.shader_test \
|
||||
tests/hlsl/texture-load-typed.shader_test \
|
||||
|
104
tests/hlsl/technique-fx_2.shader_test
Normal file
104
tests/hlsl/technique-fx_2.shader_test
Normal file
@ -0,0 +1,104 @@
|
||||
[require]
|
||||
shader model < 3.0
|
||||
|
||||
[pixel shader fail todo]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 teChnique = {0, 0, 0, 0};
|
||||
return teChnique;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 technique10 = {0, 0, 0, 0};
|
||||
return technique10;
|
||||
}
|
||||
|
||||
[pixel shader fail todo]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 technique11 = {0, 0, 0, 0};
|
||||
return technique11;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
typedef float4 technique10;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
[pixel shader fail todo]
|
||||
typedef float4 Technique;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
[pixel shader]
|
||||
typedef float4 Technique10;
|
||||
typedef float4 Technique11;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 teChnique10 = {0, 0, 0, 0};
|
||||
float4 teChnique11 = {0, 0, 0, 0};
|
||||
return teChnique10 + teChnique11;
|
||||
}
|
||||
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 teChnique11 = {0, 0, 0, 0};
|
||||
return teChnique11;
|
||||
}
|
||||
|
||||
[effect todo]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
technique10
|
||||
{
|
||||
}
|
||||
|
||||
% Effects without techniques are not allowed for fx_2_0
|
||||
[effect fail]
|
||||
float4 f;
|
||||
|
||||
% fx_5_0 keyword fails with fx_2_0 profile
|
||||
[effect fail]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
technique11
|
||||
{
|
||||
}
|
||||
|
||||
[effect fail]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
tEchnique10
|
||||
{
|
||||
}
|
||||
|
||||
[effect fail]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
tEchnique11
|
||||
{
|
||||
}
|
83
tests/hlsl/technique-fx_4.shader_test
Normal file
83
tests/hlsl/technique-fx_4.shader_test
Normal file
@ -0,0 +1,83 @@
|
||||
[require]
|
||||
shader model >= 4.0
|
||||
shader model < 6.0
|
||||
|
||||
[pixel shader fail todo]
|
||||
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]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
tEchnique10
|
||||
{
|
||||
}
|
||||
|
||||
[effect fail]
|
||||
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;
|
83
tests/hlsl/technique-fx_5.shader_test
Normal file
83
tests/hlsl/technique-fx_5.shader_test
Normal file
@ -0,0 +1,83 @@
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
shader model < 6.0
|
||||
|
||||
[pixel shader fail todo]
|
||||
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_5_0
|
||||
[effect todo]
|
||||
float4 f;
|
||||
|
||||
% fx_2_0 keyword is allowed with fx_5_0 profiles
|
||||
[effect todo]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
technique11
|
||||
{
|
||||
}
|
||||
|
||||
[effect fail]
|
||||
technique
|
||||
{
|
||||
}
|
||||
|
||||
tEchnique10
|
||||
{
|
||||
}
|
||||
|
||||
[effect fail]
|
||||
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;
|
Loading…
Reference in New Issue
Block a user