mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Express deref->offset in whole registers.
This is required to use SM4 relative addressing, because it is limited to whole-register granularity.
This commit is contained in:
committed by
Alexandre Julliard
parent
61a17643a2
commit
1520f327e5
Notes:
Alexandre Julliard
2023-10-31 22:38:12 +01: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/396
@@ -642,7 +642,7 @@ struct hlsl_deref
|
||||
* regset) from the start of the variable, to the part of the variable that is referenced.
|
||||
* This offset is stored using two fields, one for a variable part and other for a constant
|
||||
* part, which are added together:
|
||||
* - offset: An offset given by an instruction node, in number of register components.
|
||||
* - offset: An offset given by an instruction node, in whole registers.
|
||||
* - const_offset: A constant number of register components.
|
||||
* Since the type information cannot longer be retrieved from the offset alone, the type is
|
||||
* stored in the data_type field, which remains NULL if the deref hasn't been lowered yet. */
|
||||
|
||||
Reference in New Issue
Block a user