glsl: add ir_variable::contains_bindless()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -474,6 +474,17 @@ public:
|
||||
return this->type->without_array() == this->interface_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether this variable contains a bindless sampler/image.
|
||||
*/
|
||||
inline bool contains_bindless() const
|
||||
{
|
||||
if (!this->type->contains_sampler() && !this->type->contains_image())
|
||||
return false;
|
||||
|
||||
return this->data.bindless || this->data.mode != ir_var_uniform;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this->interface_type on a newly created variable.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user