| 847 | } |
| 848 | |
| 849 | void 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 | |
| 856 | void Demo::draw() { |
| 857 | // Don't draw if initialization isn't complete, if the swapchain became outdated, or if the window is minimized |
nothing calls this directly
no outgoing calls
no test coverage detected