MCPcopy Create free account
hub / github.com/cogentcore/core / Destroy

Method Destroy

vgpu/memory.go:89–94  ·  view source on GitHub ↗

Destroy destroys all vulkan allocations, using given dev

(dev vk.Device)

Source from the content-addressed store, hash-verified

87
88// Destroy destroys all vulkan allocations, using given dev
89func (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.

Callers

nothing calls this directly

Calls 2

FreeMethod · 0.95
DestroyMethod · 0.65

Tested by

no test coverage detected