glsl: make sampler/image scalar types
As a side effect, this will magically fix std140/std430 interfaces for bindless samplers/images and will help for implementing the explicit conversions with constructors. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
33931e4062
commit
c618f31065
|
@ -441,7 +441,7 @@ struct glsl_type {
|
||||||
{
|
{
|
||||||
return (vector_elements == 1)
|
return (vector_elements == 1)
|
||||||
&& (base_type >= GLSL_TYPE_UINT)
|
&& (base_type >= GLSL_TYPE_UINT)
|
||||||
&& (base_type <= GLSL_TYPE_BOOL);
|
&& (base_type <= GLSL_TYPE_IMAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue