renderer: bind objects in single loop

This refactors the code to bind the samplers/ubo/const objects
in a single shader loop.

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
1 file changed