nir: Add glsl_float_type() wrapper.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Kenneth Graunke 2015-02-23 19:56:00 -08:00
parent 871f1080d0
commit 3120345f40
2 changed files with 7 additions and 0 deletions

View file

@ -142,6 +142,12 @@ glsl_void_type(void)
return glsl_type::void_type;
}
const glsl_type *
glsl_float_type(void)
{
return glsl_type::float_type;
}
const glsl_type *
glsl_vec4_type(void)
{

View file

@ -69,6 +69,7 @@ bool glsl_type_is_scalar(const struct glsl_type *type);
bool glsl_type_is_matrix(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
const struct glsl_type *glsl_float_type(void);
const struct glsl_type *glsl_vec4_type(void);
const struct glsl_type *glsl_array_type(const struct glsl_type *base,
unsigned elements);