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

Method FreeBuffer

vgpu/cmds.go:110–114  ·  view source on GitHub ↗

FreeBuffer frees the current Buff buffer

(dev *Device)

Source from the content-addressed store, hash-verified

108
109// FreeBuffer frees the current Buff buffer
110func (cp *CmdPool) FreeBuffer(dev *Device) {
111 cmdBu := []vk.CommandBuffer{cp.Buff}
112 vk.FreeCommandBuffers(dev.Device, cp.Pool, 1, cmdBu)
113 cp.Buff = nil
114}
115
116// Destroy
117func (cp *CmdPool) Destroy(dev vk.Device) {

Callers 1

EndSubmitWaitFreeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected