Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | DRW_ADD_FLAG_FROM_VBO_REQUEST(flag, vbo, value) (flag |= DRW_vbo_requested(vbo) ? (value) : 0) |
#define | DRW_ADD_FLAG_FROM_IBO_REQUEST(flag, ibo, value) (flag |= DRW_ibo_requested(ibo) ? (value) : 0) |
Functions | |
BLI_INLINE GPUBatch * | DRW_batch_request (GPUBatch **batch) |
BLI_INLINE bool | DRW_batch_requested (GPUBatch *batch, GPUPrimType prim_type) |
BLI_INLINE void | DRW_ibo_request (GPUBatch *batch, GPUIndexBuf **ibo) |
BLI_INLINE bool | DRW_ibo_requested (GPUIndexBuf *ibo) |
BLI_INLINE void | DRW_vbo_request (GPUBatch *batch, GPUVertBuf **vbo) |
BLI_INLINE bool | DRW_vbo_requested (GPUVertBuf *vbo) |
#define DRW_ADD_FLAG_FROM_IBO_REQUEST | ( | flag, | |
ibo, | |||
value | |||
) | (flag |= DRW_ibo_requested(ibo) ? (value) : 0) |
Definition at line 24 of file draw_cache_inline.h.
#define DRW_ADD_FLAG_FROM_VBO_REQUEST | ( | flag, | |
vbo, | |||
value | |||
) | (flag |= DRW_vbo_requested(vbo) ? (value) : 0) |
Definition at line 22 of file draw_cache_inline.h.
BLI_INLINE GPUBatch* DRW_batch_request | ( | GPUBatch ** | batch | ) |
Definition at line 28 of file draw_cache_inline.h.
References batch, GPU_batch_calloc(), and NULL.
Referenced by DRW_curve_batch_cache_get_edit_edges(), DRW_curve_batch_cache_get_edit_verts(), DRW_curve_batch_cache_get_normal_edge(), DRW_curve_batch_cache_get_wire_edge(), DRW_curves_batch_cache_get_edit_points(), DRW_mesh_batch_cache_get_all_edges(), DRW_mesh_batch_cache_get_all_verts(), DRW_mesh_batch_cache_get_edge_detection(), DRW_mesh_batch_cache_get_edges_with_select_id(), DRW_mesh_batch_cache_get_edit_edges(), DRW_mesh_batch_cache_get_edit_facedots(), DRW_mesh_batch_cache_get_edit_lnors(), DRW_mesh_batch_cache_get_edit_mesh_analysis(), DRW_mesh_batch_cache_get_edit_skin_roots(), DRW_mesh_batch_cache_get_edit_triangles(), DRW_mesh_batch_cache_get_edit_vertices(), DRW_mesh_batch_cache_get_edit_vnors(), DRW_mesh_batch_cache_get_edituv_edges(), DRW_mesh_batch_cache_get_edituv_facedots(), DRW_mesh_batch_cache_get_edituv_faces(), DRW_mesh_batch_cache_get_edituv_faces_stretch_angle(), DRW_mesh_batch_cache_get_edituv_faces_stretch_area(), DRW_mesh_batch_cache_get_edituv_verts(), DRW_mesh_batch_cache_get_facedots_with_select_id(), DRW_mesh_batch_cache_get_loose_edges(), DRW_mesh_batch_cache_get_sculpt_overlays(), DRW_mesh_batch_cache_get_surface_edges(), DRW_mesh_batch_cache_get_surface_weights(), DRW_mesh_batch_cache_get_triangles_with_select_id(), DRW_mesh_batch_cache_get_uv_edges(), DRW_mesh_batch_cache_get_verts_with_select_id(), DRW_mesh_batch_cache_get_wireframes_face(), and mesh_batch_cache_request_surface_batches().
BLI_INLINE bool DRW_batch_requested | ( | GPUBatch * | batch, |
GPUPrimType | prim_type | ||
) |
Definition at line 37 of file draw_cache_inline.h.
References batch, GPU_batch_init_ex(), and NULL.
Referenced by DRW_curve_batch_cache_create_requested(), DRW_curves_batch_cache_create_requested(), and DRW_mesh_batch_cache_create_requested().
BLI_INLINE void DRW_ibo_request | ( | GPUBatch * | batch, |
GPUIndexBuf ** | ibo | ||
) |
Definition at line 50 of file draw_cache_inline.h.
References batch, GPU_batch_elembuf_set(), GPU_indexbuf_calloc(), and NULL.
Referenced by DRW_curve_batch_cache_create_requested(), DRW_mesh_batch_cache_create_requested(), blender::draw::mesh_buffer_cache_create_requested(), and blender::draw::mesh_buffer_cache_create_requested_subdiv().
BLI_INLINE bool DRW_ibo_requested | ( | GPUIndexBuf * | ibo | ) |
Definition at line 60 of file draw_cache_inline.h.
References GPU_indexbuf_is_init(), and NULL.
Referenced by draw_subdiv_create_requested_buffers(), DRW_curve_batch_cache_create_requested(), blender::draw::mesh_buffer_cache_create_requested(), and blender::draw::mesh_buffer_cache_create_requested_subdiv().
BLI_INLINE void DRW_vbo_request | ( | GPUBatch * | batch, |
GPUVertBuf ** | vbo | ||
) |
Definition at line 67 of file draw_cache_inline.h.
References batch, GPU_batch_vertbuf_add, GPU_vertbuf_calloc(), and NULL.
Referenced by drw_add_attributes_vbo(), DRW_curve_batch_cache_create_requested(), DRW_curves_batch_cache_create_requested(), DRW_mesh_batch_cache_create_requested(), and DRW_mesh_batch_cache_pos_vertbuf_get().
BLI_INLINE bool DRW_vbo_requested | ( | GPUVertBuf * | vbo | ) |
Definition at line 78 of file draw_cache_inline.h.
References GPU_vertbuf_get_status(), GPU_VERTBUF_INIT, and NULL.
Referenced by curves_batch_cache_ensure_procedural_pos(), DRW_curve_batch_cache_create_requested(), DRW_curves_batch_cache_create_requested(), and blender::draw::mesh_buffer_cache_create_requested_subdiv().