vkd3d-shader/hlsl: Do not deduplicate sampler types in the CTAB.

This commit is contained in:
Elizabeth Figura
2025-11-09 12:58:23 -06:00
committed by Henri Verbeet
parent 03d02f9018
commit da456b1fb4
Notes: Henri Verbeet 2025-11-10 16:27:47 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1819

View File

@@ -10609,7 +10609,11 @@ static void write_sm1_type(struct vkd3d_bytecode_buffer *buffer, struct hlsl_typ
struct hlsl_struct_field *field;
size_t i;
if (type->bytecode_offset)
/* Native deduplicates types, but emits the correct dimension for generic
* samplers. Apparently it deals with this by never deduplicating any
* sampler types. This is not very efficient, but we may as well do the
* same. */
if (type->bytecode_offset && array_type->class != HLSL_CLASS_SAMPLER)
return;
if (array_type->class == HLSL_CLASS_STRUCT)