AllocDev allocates device memory for all bufers
()
| 179 | |
| 180 | // AllocDev allocates device memory for all bufers |
| 181 | func (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 |
| 188 | func (mm *Memory) AllocDevBuff(bt BuffTypes) { |
no test coverage detected