|
Blender
V2.93
|
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) |
| #define | DRW_TEST_ASSIGN_VBO(v) (v = (DRW_vbo_requested(v) ? (v) : NULL)) |
| #define | DRW_TEST_ASSIGN_IBO(v) (v = (DRW_ibo_requested(v) ? (v) : NULL)) |
Functions | |
| BLI_INLINE GPUBatch * | DRW_batch_request (GPUBatch **batch) |
| BLI_INLINE bool | DRW_batch_requested (GPUBatch *batch, int 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 39 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 37 of file draw_cache_inline.h.
Definition at line 45 of file draw_cache_inline.h.
Definition at line 44 of file draw_cache_inline.h.
| BLI_INLINE GPUBatch* DRW_batch_request | ( | GPUBatch ** | batch | ) |
Definition at line 47 of file draw_cache_inline.h.
References batch, GPU_batch_calloc(), and NULL.
Referenced by DRW_curve_batch_cache_get_edge_detection(), 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_surface_shaded(), DRW_curve_batch_cache_get_triangles_with_normals(), DRW_curve_batch_cache_get_wire_edge(), DRW_curve_batch_cache_get_wireframes_face(), DRW_curve_batch_cache_pos_vertbuf_get(), 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, |
| int | prim_type | ||
| ) |
Definition at line 56 of file draw_cache_inline.h.
References batch, GPU_batch_init_ex(), and NULL.
Referenced by DRW_curve_batch_cache_create_requested(), and DRW_mesh_batch_cache_create_requested().
| BLI_INLINE void DRW_ibo_request | ( | GPUBatch * | batch, |
| GPUIndexBuf ** | ibo | ||
| ) |
Definition at line 69 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(), and DRW_mesh_batch_cache_create_requested().
| BLI_INLINE bool DRW_ibo_requested | ( | GPUIndexBuf * | ibo | ) |
Definition at line 79 of file draw_cache_inline.h.
References GPU_indexbuf_is_init(), and NULL.
Referenced by DRW_curve_batch_cache_create_requested().
| BLI_INLINE void DRW_vbo_request | ( | GPUBatch * | batch, |
| GPUVertBuf ** | vbo | ||
| ) |
Definition at line 86 of file draw_cache_inline.h.
References batch, GPU_batch_vertbuf_add, GPU_vertbuf_calloc(), and NULL.
Referenced by DRW_curve_batch_cache_create_requested(), DRW_curve_batch_cache_pos_vertbuf_get(), 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 97 of file draw_cache_inline.h.
References GPU_vertbuf_get_status(), GPU_VERTBUF_INIT, and NULL.
Referenced by DRW_curve_batch_cache_create_requested().