diff options
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index ecd174a88ad..fe1f9a8682e 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -793,7 +793,7 @@ typedef enum { nir_tex_src_ms_index, /* MSAA sample index */ nir_tex_src_ddx, nir_tex_src_ddy, - nir_tex_src_sampler_index, /* < dynamically uniform indirect index */ + nir_tex_src_sampler_offset, /* < dynamically uniform indirect offset */ nir_num_texinput_types } nir_texinput_type; @@ -838,7 +838,16 @@ typedef struct { /* gather component selector */ unsigned component : 2; + /** The sampler index + * + * If this texture instruction has a nir_tex_src_sampler_offset source, + * then the sampler index is given by sampler_index + sampler_offset. + */ unsigned sampler_index; + + /** The size of the sampler array or 0 if it's not an array */ + unsigned sampler_array_size; + nir_deref_var *sampler; /* if this is NULL, use sampler_index instead */ } nir_tex_instr; |