Destroy destroys all vulkan allocations, using given dev
(dev vk.Device)
| 87 | |
| 88 | // Destroy destroys all vulkan allocations, using given dev |
| 89 | func (mm *Memory) Destroy(dev vk.Device) { |
| 90 | mm.Free() |
| 91 | mm.Vars.Destroy(dev) |
| 92 | mm.CmdPool.Destroy(dev) |
| 93 | mm.GPU = nil |
| 94 | } |
| 95 | |
| 96 | // Config should be called after all Values have been configured |
| 97 | // and are ready to go with their initial data. |