+ if(!tex->is_loaded())
+ tex = &placeholder_texture;
+ if(!samp)
+ samp = &default_sampler;
+ }
+ else
+ samp = 0;
+
+ set_resource(texture_stack, state.texture_count, tag, { tex, samp, level });
+}
+
+void Renderer::set_storage_texture(Tag tag, const Texture *tex)
+{
+ State &state = get_state();
+ set_resource(texture_stack, state.texture_count, tag, { tex, 0, 0 });
+}