Produce the correct type for shaders and textures