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

Method AllocDev

vgpu/memory.go:181–185  ·  view source on GitHub ↗

AllocDev allocates device memory for all bufers

()

Source from the content-addressed store, hash-verified

179
180// AllocDev allocates device memory for all bufers
181func (mm *Memory) AllocDev() {
182 for bt := VtxIndexBuff; bt < BuffTypesN; bt++ {
183 mm.AllocDevBuff(bt)
184 }
185}
186
187// AllocDevBuff allocates memory on the device for given buffer
188func (mm *Memory) AllocDevBuff(bt BuffTypes) {

Callers 2

ConfigMethod · 0.95
AllocDevBuffMethod · 0.45

Calls 1

AllocDevBuffMethod · 0.95

Tested by

no test coverage detected