MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / destroy_texture

Method destroy_texture

cube/cube.cpp:849–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849void Demo::destroy_texture(texture_object &tex_objs) {
850 // clean up staging resources
851 device.freeMemory(tex_objs.mem);
852 if (tex_objs.image) device.destroyImage(tex_objs.image);
853 if (tex_objs.buffer) device.destroyBuffer(tex_objs.buffer);
854}
855
856void Demo::draw() {
857 // Don't draw if initialization isn't complete, if the swapchain became outdated, or if the window is minimized

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected