mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
nir_types: add glsl_atomic_uint_type() helper
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
c6230b9358
commit
88d3325a44
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue