tests: Separate the valid stateblock function names test from the string arg test.

This test is important because it checks that all the valid names for
stateblock functions with the expected amount of arguments are tested,
but, after parsing state block function calls, the only reason it is
not passing is that we don't parse strings yet.
This commit is contained in:
Francisco Casas 2024-06-06 16:00:18 -04:00 committed by Henri Verbeet
parent 7bd53cf6d9
commit f15d8dc9e9
Notes: Henri Verbeet 2024-07-09 21:10:32 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/915

View File

@ -11,13 +11,22 @@ sampler sam
SetHullShader(100); // 1 parameter
SetGeometryShader(foo + bar); // 1 parameter
SetPixelShader(ps1); // 1 parameter
SetComputeShader("random string"); // 1 parameter
SetComputeShader(ARG); // 1 parameter
OMSetRenderTargets(RTV0, RTV1, RTV2, RTV3, RTV4, RTV5, RTV6, RTV7, DSV); // 2 to 9 parameters
};
float4 main() : sv_target { return 0; }
[pixel shader todo]
sampler sam
{
SetComputeShader("random string");
};
float4 main() : sv_target { return 0; }
[pixel shader fail(sm<6)]
sampler sam
{