zink: add ntv util function for checking if a glsl type is an atomic counter

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9624>
This commit is contained in:
Mike Blumenkrantz
2020-12-04 12:14:10 -05:00
committed by Marge Bot
parent 90a1aaf956
commit 1950f8ec0c
@@ -52,6 +52,12 @@ spirv_shader_delete(struct spirv_shader *s);
uint32_t
zink_binding(gl_shader_stage stage, VkDescriptorType type, int index);
static inline bool
type_is_counter(const struct glsl_type *type)
{
return glsl_get_base_type(glsl_without_array(type)) == GLSL_TYPE_ATOMIC_UINT;
}
static inline VkDescriptorType
zink_sampler_type(const struct glsl_type *type)
{