+void RenderPass::TextureLoader::finish()
+{
+ if(tex)
+ obj.attach(index, *tex, samp);
+ else if(samp)
+ obj.attach(index, *samp);
+}
+
+void RenderPass::TextureLoader::sampler(const string &name)
+{
+ samp = &get_collection().get<Sampler>(name);
+}
+