mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Add field-level documentation to struct hlsl_src.
This commit is contained in:
parent
04108c0e21
commit
3fbe272659
Notes:
Alexandre Julliard
2023-01-11 22:39: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/50
@ -270,9 +270,16 @@ struct hlsl_block
|
||||
struct list instrs;
|
||||
};
|
||||
|
||||
/* A reference to an instruction node (struct hlsl_ir_node), usable as a field in other structs.
|
||||
* struct hlsl_src is more powerful than a mere pointer to an hlsl_ir_node because it also
|
||||
* contains a linked list item entry, which is used by the referenced instruction node to keep
|
||||
* track of all the hlsl_src·s that reference it.
|
||||
* This allows replacing any hlsl_ir_node with any other in all the places it is used, or checking
|
||||
* that a node has no uses before it is removed. */
|
||||
struct hlsl_src
|
||||
{
|
||||
struct hlsl_ir_node *node;
|
||||
/* Item entry for node->uses. */
|
||||
struct list entry;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user