tests/shader-runner: Support structured buffer UAVs.

This commit is contained in:
Conor McCarthy
2024-02-01 16:01:45 +10:00
committed by Alexandre Julliard
parent edc8e38bd9
commit 081c9dbc96
Notes: Alexandre Julliard 2024-02-22 23:03:08 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/642
7 changed files with 35 additions and 8 deletions

View File

@@ -427,6 +427,13 @@ static void parse_resource_directive(struct resource_params *resource, const cha
{
resource->format = parse_format(line, &resource->data_type, &resource->texel_size, &line);
}
else if (match_string(line, "stride", &line))
{
if (sscanf(line, "%u", &resource->stride) < 1)
fatal_error("Malformed texture stride '%s'.\n", line);
resource->texel_size = resource->stride;
resource->format = DXGI_FORMAT_UNKNOWN;
}
else if (match_string(line, "size", &line))
{
if (sscanf(line, "( buffer , %u ) ", &resource->width) == 1)