nir_types: add glsl_atomic_uint_type() helper
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -533,3 +533,9 @@ glsl_get_natural_size_align_bytes(const struct glsl_type *type,
|
||||
unreachable("type does not have a natural size");
|
||||
}
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_atomic_uint_type(void)
|
||||
{
|
||||
return glsl_type::atomic_uint_type;
|
||||
}
|
||||
|
||||
@@ -190,6 +190,8 @@ typedef void (*glsl_type_size_align_func)(const struct glsl_type *type,
|
||||
void glsl_get_natural_size_align_bytes(const struct glsl_type *type,
|
||||
unsigned *size, unsigned *align);
|
||||
|
||||
const struct glsl_type *glsl_atomic_uint_type(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user