17#ifdef DRW_DEBUG_MESH_CACHE_REQUEST
18# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
19 (flag |= DRW_vbo_requested(vbo) ? (printf(" VBO requested " #vbo "\n") ? value : value) : 0)
20# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
21 (flag |= DRW_ibo_requested(ibo) ? (printf(" IBO requested " #ibo "\n") ? value : value) : 0)
23# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
24 (flag |= DRW_vbo_requested(vbo) ? (value) : 0)
25# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
26 (flag |= DRW_ibo_requested(ibo) ? (value) : 0)
32 if (*
batch ==
nullptr) {
41 if (
batch !=
nullptr &&
batch->verts[0] ==
nullptr) {
45 batch->verts[0] =
nullptr;
53 if (*ibo ==
nullptr) {
56 if (
batch !=
nullptr) {
70 if (*vbo ==
nullptr) {
73 if (
batch !=
nullptr) {
void GPU_batch_elembuf_set(blender::gpu::Batch *batch, blender::gpu::IndexBuf *index_buf, bool own_ibo)
void GPU_batch_init_ex(blender::gpu::Batch *batch, GPUPrimType primitive_type, blender::gpu::VertBuf *vertex_buf, blender::gpu::IndexBuf *index_buf, eGPUBatchFlag owns_flag)
int GPU_batch_vertbuf_add(blender::gpu::Batch *batch, blender::gpu::VertBuf *vertex_buf, bool own_vbo)
blender::gpu::IndexBuf * GPU_indexbuf_calloc()
bool GPU_indexbuf_is_init(blender::gpu::IndexBuf *elem)
GPUVertBufStatus GPU_vertbuf_get_status(const blender::gpu::VertBuf *verts)
blender::gpu::VertBuf * GPU_vertbuf_calloc()
Read Guarded memory(de)allocation.
bool DRW_batch_requested(blender::gpu::Batch *batch, GPUPrimType prim_type)
blender::gpu::Batch * DRW_batch_request(blender::gpu::Batch **batch)
void DRW_vbo_request(blender::gpu::Batch *batch, blender::gpu::VertBuf **vbo)
bool DRW_vbo_requested(blender::gpu::VertBuf *vbo)
void DRW_ibo_request(blender::gpu::Batch *batch, blender::gpu::IndexBuf **ibo)
bool DRW_ibo_requested(blender::gpu::IndexBuf *ibo)
Batch * GPU_batch_calloc()