tests: Add some tests for shader object type names.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-02-23 15:30:29 +01:00 committed by Alexandre Julliard
parent 437ef0896f
commit 4dd1bbae40
Notes: Alexandre Julliard 2024-03-06 23:29:49 +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/676
3 changed files with 71 additions and 0 deletions

View File

@ -90,6 +90,8 @@ vkd3d_shader_tests = \
tests/hlsl/distance.shader_test \
tests/hlsl/dot.shader_test \
tests/hlsl/duplicate-modifiers.shader_test \
tests/hlsl/effect-shader-objects-fx_2.shader_test \
tests/hlsl/effect-shader-objects-fx_5.shader_test \
tests/hlsl/entry-point-semantics.shader_test \
tests/hlsl/exp.shader_test \
tests/hlsl/expr-indexing.shader_test \

View File

@ -0,0 +1,35 @@
[require]
shader model < 3.0
[pixel shader]
float4 vertexshadeR;
float4 geometryshader;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail todo]
float4 vertexshader;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail]
float4 VertexShader;
float4 main() : sv_target
{
return 0;
}
[effect todo]
vertexshader vs1;
verteXshadeR vs2;
pixelshader ps1;
pixeLshadeR ps2;
technique {}

View File

@ -0,0 +1,34 @@
[require]
shader model >= 5.0
shader model < 6.0
[pixel shader]
float4 vertexshadeR;
float4 geometryshader;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail todo]
float4 vertexshader;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail]
float4 VertexShader;
float4 main() : sv_target
{
return 0;
}
[effect todo]
vertexshader vs1;
verteXshadeR vs2;
pixelshader ps1;
pixeLshadeR ps2;