Init configures the Memory for use with given gpu, device, and associated queueindex
(gp *GPU, device *Device)
| 76 | |
| 77 | // Init configures the Memory for use with given gpu, device, and associated queueindex |
| 78 | func (mm *Memory) Init(gp *GPU, device *Device) { |
| 79 | mm.GPU = gp |
| 80 | mm.Device = *device |
| 81 | mm.CmdPool.ConfigTransient(device) |
| 82 | for bt := VtxIndexBuff; bt < BuffTypesN; bt++ { |
| 83 | mm.Buffs[bt] = &MemBuff{Type: bt, GPU: mm.GPU} |
| 84 | } |
| 85 | mm.Vars.Mem = mm |
| 86 | } |
| 87 | |
| 88 | // Destroy destroys all vulkan allocations, using given dev |
| 89 | func (mm *Memory) Destroy(dev vk.Device) { |
nothing calls this directly
no test coverage detected