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:
parent
6dbe075f92
commit
5d57bd0345
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue