tests: Add some tests for initial values in effects.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-09-26 13:50:30 +02:00 committed by Henri Verbeet
parent 2bf517782d
commit 2626dcc55d
Notes: Henri Verbeet 2024-09-30 21:05:32 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1120
3 changed files with 27 additions and 0 deletions

View File

@ -103,6 +103,8 @@ vkd3d_shader_tests = \
tests/hlsl/duplicate-modifiers.shader_test \
tests/hlsl/early-depth-stencil.shader_test \
tests/hlsl/effect-compile.shader_test \
tests/hlsl/effect-initial-values-fx_2.shader_test \
tests/hlsl/effect-initial-values-fx_4.shader_test \
tests/hlsl/effect-pass-states-fx_5.shader_test \
tests/hlsl/effect-shader-objects-fx_2.shader_test \
tests/hlsl/effect-shader-objects-fx_5.shader_test \

View File

@ -0,0 +1,13 @@
[require]
shader model < 3.0
[effect todo]
float var1 = 0.1f;
float2 var2 = {0.2f,0.3f};
float2x4 var3 = {1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0};
bool var4 = true;
half var5 = 0.5;
int var6 = 2;
uint var7 = 3;
technique {}

View File

@ -0,0 +1,12 @@
[require]
shader model >= 4.0
shader model < 6.0
[effect todo]
float var1 = 0.1f;
float2 var2 = {0.2f,0.3f};
float2x4 var3 = {1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0};
bool var4 = true;
half var5 = 0.5;
int var6 = 2;
uint var7 = 3;