Sampler handling will need to be rewritten along with uniform templates.