mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nir/types: Add wrappers for a couple of atomic counter methods
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
54d7fca077
commit
1fb9984d7e
2 changed files with 15 additions and 0 deletions
|
|
@ -539,3 +539,15 @@ glsl_atomic_uint_type(void)
|
|||
{
|
||||
return glsl_type::atomic_uint_type;
|
||||
}
|
||||
|
||||
unsigned
|
||||
glsl_atomic_size(const struct glsl_type *type)
|
||||
{
|
||||
return type->atomic_size();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_contains_atomic(const struct glsl_type *type)
|
||||
{
|
||||
return type->contains_atomic();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ unsigned glsl_get_sampler_target(const struct glsl_type *type);
|
|||
unsigned glsl_get_record_location_offset(const struct glsl_type *type,
|
||||
unsigned length);
|
||||
|
||||
unsigned glsl_atomic_size(const struct glsl_type *type);
|
||||
|
||||
static inline unsigned
|
||||
glsl_get_bit_size(const struct glsl_type *type)
|
||||
{
|
||||
|
|
@ -136,6 +138,7 @@ bool glsl_type_is_numeric(const struct glsl_type *type);
|
|||
bool glsl_type_is_boolean(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_array(const struct glsl_type *type);
|
||||
bool glsl_contains_atomic(const struct glsl_type *type);
|
||||
|
||||
const struct glsl_type *glsl_void_type(void);
|
||||
const struct glsl_type *glsl_float_type(void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue