mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/shader-runner: Support structured buffer UAVs.
This commit is contained in:
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
@@ -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)
|
||||
|
Reference in New Issue
Block a user