summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/linker.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-20 19:02:27 +0200
committerSamuel Pitoiset <[email protected]>2017-04-21 10:08:04 +0200
commit4a0aa0b3b3c07469aeef5d627f63adda6f5bcf5a (patch)
treee256688dc11863786c9bba3cca5102ffdc257014 /src/compiler/glsl/linker.h
parent29582dd20c1bc54ef5f481a955862bbf48d61c90 (diff)
glsl: make component_slots() returns 1 for sampler types
It looks inconsistent to return 1 for image types and 0 for sampler types. Especially because component_slots() is mostly used by values_for_type() which always returns 1 for samplers. For bindless, this value will be bumped to 2 because the ARB_bindless_texture states that bindless samplers/images should consume two components. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.h')
0 files changed, 0 insertions, 0 deletions