- tex = &get_collection().get<Texture>(name);
- tex.keep();
-}
-
-void RenderPass::TextureLoader::texture2d()
-{
- tex = new Texture2D;
- if(coll)
- load_sub(static_cast<Texture2D &>(*tex), get_collection());
- else
- load_sub(static_cast<Texture2D &>(*tex));