tests/hlsl: Add UAV counter tests.

This commit is contained in:
Conor McCarthy
2024-03-13 16:36:59 +10:00
committed by Alexandre Julliard
parent 8c15377ffc
commit 52a831ba0d
Notes: Alexandre Julliard 2024-03-18 23:24:56 +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/714
6 changed files with 59 additions and 3 deletions

View File

@@ -481,6 +481,15 @@ static void parse_resource_directive(struct resource_params *resource, const cha
resource->dimension = RESOURCE_DIMENSION_BUFFER;
resource->height = 1;
}
else if (sscanf(line, "( counter_buffer , %u ) ", &resource->width) == 1)
{
resource->dimension = RESOURCE_DIMENSION_BUFFER;
resource->height = 1;
resource->is_uav_counter = true;
resource->stride = sizeof(uint32_t);
resource->texel_size = resource->stride;
resource->format = DXGI_FORMAT_UNKNOWN;
}
else if (sscanf(line, "( 2d , %u , %u ) ", &resource->width, &resource->height) == 2)
{
resource->dimension = RESOURCE_DIMENSION_2D;