remove globals and add util for rendering shader descriptors