mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Import vector indexing tests from Wine.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
b64b304061
commit
fd9a568b8a
@@ -211,6 +211,18 @@ static void parse_test_directive(struct shader_context *context, const char *lin
|
||||
}
|
||||
memcpy(context->uniforms + offset, &v, sizeof(v));
|
||||
}
|
||||
else if (match_string(line, "uint", &line))
|
||||
{
|
||||
unsigned int u;
|
||||
|
||||
sscanf(line, "%u", &u);
|
||||
if (offset + 1 > context->uniform_count)
|
||||
{
|
||||
context->uniform_count = offset + 1;
|
||||
context->uniforms = realloc(context->uniforms, context->uniform_count * sizeof(*context->uniforms));
|
||||
}
|
||||
memcpy(context->uniforms + offset, &u, sizeof(u));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -271,6 +283,9 @@ START_TEST(shader_runner_d3d12)
|
||||
|
||||
while (fgets(line, sizeof(line), f))
|
||||
{
|
||||
if (line[0] == '\n')
|
||||
continue;
|
||||
|
||||
if (line[0] == '[')
|
||||
{
|
||||
switch (state)
|
||||
|
||||
Reference in New Issue
Block a user