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

Method Free

vgpu/renderframe.go:116–126  ·  view source on GitHub ↗

Free frees any existing (for ReInit or Destroy)

()

Source from the content-addressed store, hash-verified

114
115// Free frees any existing (for ReInit or Destroy)
116func (rf *RenderFrame) Free() {
117 dev := rf.Device.Device
118 vk.DeviceWaitIdle(dev)
119 vk.DestroySemaphore(dev, rf.ImageAcquired, nil)
120 vk.DestroySemaphore(dev, rf.RenderDone, nil)
121 vk.DestroyFence(dev, rf.RenderFence, nil)
122 for _, fr := range rf.Frames {
123 fr.Destroy()
124 }
125 rf.Frames = nil
126}
127
128// SetRender sets the Render and updates frames accordingly
129func (rf *RenderFrame) SetRender(rp *Render) {

Callers 1

DestroyMethod · 0.95

Calls 2

DeviceWaitIdleMethod · 0.80
DestroyMethod · 0.65

Tested by

no test coverage detected