GPUBatch: Use custom allocator

This is needed for the new GPU abstraction.
This commit is contained in:
2020-08-06 01:00:02 +02:00
parent 0063d1befc
commit 0255f1e022
4 changed files with 15 additions and 8 deletions

View File

@@ -102,6 +102,7 @@ enum {
GPU_BATCH_OWNS_INDEX = (1u << 31u),
};
GPUBatch *GPU_batch_calloc(uint count);
GPUBatch *GPU_batch_create_ex(GPUPrimType, GPUVertBuf *, GPUIndexBuf *, uint owns_flag);
void GPU_batch_init_ex(GPUBatch *, GPUPrimType, GPUVertBuf *, GPUIndexBuf *, uint owns_flag);
void GPU_batch_copy(GPUBatch *batch_dst, GPUBatch *batch_src);