mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 16:38:06 +02:00
nir: Add a variable_foreach_safe helper
Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
731870fbe3
commit
da422663a6
1 changed files with 3 additions and 0 deletions
|
|
@ -334,6 +334,9 @@ typedef struct nir_variable {
|
|||
#define nir_foreach_variable(var, var_list) \
|
||||
foreach_list_typed(nir_variable, var, node, var_list)
|
||||
|
||||
#define nir_foreach_variable_safe(var, var_list) \
|
||||
foreach_list_typed_safe(nir_variable, var, node, var_list)
|
||||
|
||||
static inline bool
|
||||
nir_variable_is_global(const nir_variable *var)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue