glsl: store the image format in glsl_struct_field
ARB_bindless_texture allows to declare image types inside structures, which means we need to keep track of the format. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -341,6 +341,7 @@ per_vertex_accumulator::add_field(int slot, const glsl_type *type,
|
||||
this->fields[this->num_fields].memory_coherent = 0;
|
||||
this->fields[this->num_fields].memory_volatile = 0;
|
||||
this->fields[this->num_fields].memory_restrict = 0;
|
||||
this->fields[this->num_fields].image_format = 0;
|
||||
this->fields[this->num_fields].explicit_xfb_buffer = 0;
|
||||
this->fields[this->num_fields].xfb_buffer = -1;
|
||||
this->fields[this->num_fields].xfb_stride = -1;
|
||||
|
Reference in New Issue
Block a user