nir/glsl: wrap component_slots_aligned()

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15731>
This commit is contained in:
Timothy Arceri 2021-11-02 12:33:10 +11:00 committed by Marge Bot
parent 6dbe075f92
commit 5d57bd0345
2 changed files with 8 additions and 0 deletions

View File

@ -203,6 +203,12 @@ glsl_get_component_slots(const struct glsl_type *type)
return type->component_slots();
}
unsigned
glsl_get_component_slots_aligned(const struct glsl_type *type, unsigned offset)
{
return type->component_slots_aligned(offset);
}
unsigned
glsl_varying_count(const struct glsl_type *type)
{

View File

@ -102,6 +102,8 @@ unsigned glsl_count_dword_slots(const struct glsl_type *type, bool is_bindless);
unsigned glsl_count_attribute_slots(const struct glsl_type *type,
bool is_gl_vertex_input);
unsigned glsl_get_component_slots(const struct glsl_type *type);
unsigned glsl_get_component_slots_aligned(const struct glsl_type *type,
unsigned offset);
unsigned glsl_varying_count(const struct glsl_type *type);
const char *glsl_get_struct_elem_name(const struct glsl_type *type,