19#ifdef DRW_DEBUG_MESH_CACHE_REQUEST
20# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
21 (flag |= DRW_vbo_requested(vbo) ? (printf(" VBO requested " #vbo "\n") ? value : value) : 0)
22# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
23 (flag |= DRW_ibo_requested(ibo) ? (printf(" IBO requested " #ibo "\n") ? value : value) : 0)
25# define DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) \
26 (flag |= DRW_vbo_requested(vbo) ? (value) : 0)
27# define DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) \
28 (flag |= DRW_ibo_requested(ibo) ? (value) : 0)
34 if (*batch ==
nullptr) {
43 if (batch !=
nullptr && batch->verts[0] ==
nullptr) {
48 batch->verts[0] =
nullptr;
56 if (*ibo ==
nullptr) {
59 if (batch !=
nullptr) {
73 if (*vbo ==
nullptr) {
76 if (batch !=
nullptr) {
78 "Request of vertex buffer for procedural batch is not valid operation.");
91 if (*blas ==
nullptr) {
blender::gpu::BottomLevelAS * GPU_ray_tracing_blas_alloc(const char *name)
#define BLI_assert_msg(a, msg)
bool GPU_indexbuf_is_init(gpu::IndexBuf *elem)
bool DRW_vbo_requested(gpu::VertBuf *vbo)
gpu::Batch * GPU_batch_calloc()
bool DRW_batch_requested(gpu::Batch *batch, GPUPrimType prim_type)
void DRW_blas_request(gpu::BottomLevelAS **blas)
GPUVertBufStatus GPU_vertbuf_get_status(const gpu::VertBuf *verts)
void DRW_ibo_request(gpu::Batch *batch, gpu::IndexBuf **ibo)
gpu::VertBuf * GPU_vertbuf_calloc()
void GPU_batch_init_ex(gpu::Batch *batch, GPUPrimType primitive_type, gpu::VertBuf *vertex_buf, gpu::IndexBuf *index_buf, GPUBatchFlag owns_flag)
gpu::IndexBuf * GPU_indexbuf_calloc()
gpu::Batch * DRW_batch_request(gpu::Batch **batch)
void GPU_batch_elembuf_set(gpu::Batch *batch, gpu::IndexBuf *index_buf, bool own_ibo)
void DRW_vbo_request(gpu::Batch *batch, gpu::VertBuf **vbo)
int GPU_batch_vertbuf_add(gpu::Batch *batch, gpu::VertBuf *vertex_buf, bool own_vbo)
bool DRW_ibo_requested(gpu::IndexBuf *ibo)