mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
nir/glsl: add nir_var_declared_implicitly enum
This will be used in the following patch. Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22846>
This commit is contained in:
parent
a8534c7b4c
commit
7cff8d85c0
2 changed files with 9 additions and 0 deletions
|
|
@ -486,6 +486,9 @@ get_nir_how_declared(unsigned how_declared)
|
|||
if (how_declared == ir_var_hidden)
|
||||
return nir_var_hidden;
|
||||
|
||||
if (how_declared == ir_var_declared_implicitly)
|
||||
return nir_var_declared_implicitly;
|
||||
|
||||
return nir_var_declared_normally;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -430,6 +430,12 @@ typedef enum {
|
|||
*/
|
||||
nir_var_declared_normally = 0,
|
||||
|
||||
/**
|
||||
* Variable is an implicitly declared built-in that has not been explicitly
|
||||
* re-declared by the shader.
|
||||
*/
|
||||
nir_var_declared_implicitly,
|
||||
|
||||
/**
|
||||
* Variable is implicitly generated by the compiler and should not be
|
||||
* visible via the API.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue