glsl: allow bindless images to be declared inside structures
The spec doesn't clearly state this, but I have got clarification from the spec authors. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -6989,7 +6989,7 @@ ast_process_struct_or_iface_block_members(exec_list *instructions,
|
||||
_mesa_glsl_error(&loc, state, "atomic counter in structure");
|
||||
}
|
||||
|
||||
if (decl_type->contains_image()) {
|
||||
if (!state->has_bindless() && decl_type->contains_image()) {
|
||||
/* FINISHME: Same problem as with atomic counters.
|
||||
* FINISHME: Request clarification from Khronos and add
|
||||
* FINISHME: spec quotation here.
|
||||
|
Reference in New Issue
Block a user