mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Do not deduplicate sampler types in the CTAB.
This commit is contained in:
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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user