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

Function FreeBuffMem

vgpu/membuff.go:226–232  ·  view source on GitHub ↗

FreeBuffMem frees given device memory to nil

(dev vk.Device, memory *vk.DeviceMemory)

Source from the content-addressed store, hash-verified

224
225// FreeBuffMem frees given device memory to nil
226func FreeBuffMem(dev vk.Device, memory *vk.DeviceMemory) {
227 if *memory == vk.NullDeviceMemory {
228 return
229 }
230 vk.FreeMemory(dev, *memory, nil)
231 *memory = vk.NullDeviceMemory
232}
233
234// DestroyBuffer destroys given buffer and nils the pointer
235func DestroyBuffer(dev vk.Device, buff *vk.Buffer) {

Callers 3

FreeHostMethod · 0.85
FreeMethod · 0.85
FreeBuffMemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected