16#ifdef DRW_DEBUG_MESH_CACHE_REQUEST
17# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
18 (flag |= DRW_vbo_requested(vbo) ? (printf(" VBO requested " #vbo "\n") ? value : value) : 0)
19# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
20 (flag |= DRW_ibo_requested(ibo) ? (printf(" IBO requested " #ibo "\n") ? value : value) : 0)
22# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
23 (flag |= DRW_vbo_requested(vbo) ? (value) : 0)
24# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
25 (flag |= DRW_ibo_requested(ibo) ? (value) : 0)
31 if (*
batch ==
nullptr) {
40 if (
batch !=
nullptr &&
batch->verts[0] ==
nullptr) {
44 batch->verts[0] =
nullptr;
52 if (*ibo ==
nullptr) {
55 if (
batch !=
nullptr) {
69 if (*vbo ==
nullptr) {
72 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, GPUBatchFlag 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()
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()
struct @021025263243242147216143265077100330027142264337::@225245033123204053237120173316075113304004012000 batch