tests/shader_runner: Require explicit formats for UAV resources.

The current default is r32g32b32a32 but it requires special support
which is not available on all GPUs, so it is not a very convenient
default.

Instead of changing the default making it different from RTV resoures,
the format is required to always be explicit for UAVs.

The exceptions are counter_buffer and buffers with "stride", which don't
require a format because it is already implied.
This commit is contained in:
Francisco Casas
2024-07-31 21:48:19 -04:00
committed by Henri Verbeet
parent 738ecc9eb1
commit 164076d176
Notes: Henri Verbeet 2024-08-22 16:43:21 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/991
6 changed files with 20 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ struct resource_params
bool is_shadow;
bool is_raw;
bool is_uav_counter;
bool explicit_format;
enum texture_data_type data_type;
unsigned int stride;