mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
ac/nir/ngg: Add a few comments explaining some variables.
These were somewhat confusing, so let's add a few words to explain what they are exactly. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33218>
This commit is contained in:
parent
28f49bf99c
commit
23641d4032
1 changed files with 17 additions and 0 deletions
|
|
@ -36,9 +36,26 @@ typedef struct
|
|||
|
||||
nir_variable *position_value_var;
|
||||
nir_variable *prim_exp_arg_var;
|
||||
|
||||
/**
|
||||
* Whether the current invocation's vertex (if any) is accepted by the culling algorithm.
|
||||
* Only used when culling is enabled.
|
||||
*/
|
||||
nir_variable *es_accepted_var;
|
||||
|
||||
/**
|
||||
* hether the current invocation's primitive (if any) is accepted by the culling algorithm.
|
||||
* Only used when culling is enabled.
|
||||
*/
|
||||
nir_variable *gs_accepted_var;
|
||||
|
||||
/**
|
||||
* Whether the current invocation's primitive (if any) should be exported.
|
||||
* Initially set to whether the invocation has a vertex, then set to false by the culling
|
||||
* algorithm if the primitive is rejected.
|
||||
*/
|
||||
nir_variable *gs_exported_var;
|
||||
|
||||
nir_variable *gs_vtx_indices_vars[3];
|
||||
|
||||
nir_def *vtx_addr[3];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue