vkd3d-shader/hlsl: Don't allow manual and automatic cbuffer offset packing.

This commit is contained in:
Francisco Casas
2023-02-21 22:39:24 -03:00
committed by Alexandre Julliard
parent 4448d114ad
commit 60237cb773
Notes: Alexandre Julliard 2023-04-04 22:35:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/106
3 changed files with 23 additions and 1 deletions

View File

@@ -678,6 +678,9 @@ struct hlsl_buffer
unsigned size, used_size;
/* Register of type 'b' on which the buffer is allocated. */
struct hlsl_reg reg;
bool manually_packed_elements;
bool automatically_packed_elements;
};
struct hlsl_ctx