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

Method Destroy

vgpu/surface.go:337–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335}
336
337func (sf *Surface) Destroy() {
338 sf.FreeSwapchain()
339 if sf.Surface != vk.NullSurface {
340 vk.DestroySurface(sf.GPU.Instance, sf.Surface, nil)
341 sf.Surface = vk.NullSurface
342 }
343 sf.Device.Destroy()
344 sf.GPU = nil
345}
346
347// AcquireNextImage gets the next frame index to render to.
348// It automatically handles any issues with out-of-date swapchain.

Callers 6

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 2

FreeSwapchainMethod · 0.95
DestroyMethod · 0.65

Tested by

no test coverage detected