Config should be called after all Values have been configured and are ready to go with their initial data. Does: AllocHost(), AllocDev(). Note: dynamic binding must be called separately after this.
(dev vk.Device)
| 98 | // Does: AllocHost(), AllocDev(). |
| 99 | // Note: dynamic binding must be called separately after this. |
| 100 | func (mm *Memory) Config(dev vk.Device) { |
| 101 | mm.Free() |
| 102 | mm.Vars.Config() |
| 103 | mm.AllocHost() |
| 104 | mm.AllocDev() |
| 105 | } |
| 106 | |
| 107 | // AllocHost allocates memory for all buffers |
| 108 | func (mm *Memory) AllocHost() { |