mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Add documentation to struct hlsl_reg.
This commit is contained in:
parent
aab9886021
commit
f33d433621
Notes:
Alexandre Julliard
2023-01-19 22:45:24 +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/61
@ -210,10 +210,18 @@ struct hlsl_struct_field
|
|||||||
size_t name_bytecode_offset;
|
size_t name_bytecode_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Information of the register allocated for an instruction node or variable.
|
||||||
|
* These values are initialized at the end of hlsl_emit_bytecode(), after the compilation passes,
|
||||||
|
* just before writing the bytecode.
|
||||||
|
* For numeric registers, a writemask can be provided to indicate the reservation of only some of the
|
||||||
|
* 4 components.
|
||||||
|
* The type of register (register class) is implied from its use, so it is not stored in this
|
||||||
|
* struct. */
|
||||||
struct hlsl_reg
|
struct hlsl_reg
|
||||||
{
|
{
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
unsigned int writemask;
|
unsigned int writemask;
|
||||||
|
/* Whether the register has been allocated. */
|
||||||
bool allocated;
|
bool allocated;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -553,6 +561,7 @@ struct hlsl_ir_constant
|
|||||||
float f;
|
float f;
|
||||||
double d;
|
double d;
|
||||||
} value[4];
|
} value[4];
|
||||||
|
/* Constant register of type 'c' where the constant value is stored for SM1. */
|
||||||
struct hlsl_reg reg;
|
struct hlsl_reg reg;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user