Blender  V3.3
Macros | Functions
draw_cache_inline.h File Reference
#include "GPU_batch.h"
#include "MEM_guardedalloc.h"

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 GPUBatchDRW_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)
 

Macro Definition Documentation

◆ DRW_ADD_FLAG_FROM_IBO_REQUEST

#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.

◆ DRW_ADD_FLAG_FROM_VBO_REQUEST

#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.

Function Documentation

◆ DRW_batch_request()

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().

◆ DRW_batch_requested()

BLI_INLINE bool DRW_batch_requested ( GPUBatch batch,
GPUPrimType  prim_type 
)

◆ DRW_ibo_request()

BLI_INLINE void DRW_ibo_request ( GPUBatch batch,
GPUIndexBuf **  ibo 
)

◆ DRW_ibo_requested()

BLI_INLINE bool DRW_ibo_requested ( GPUIndexBuf ibo)

◆ DRW_vbo_request()

BLI_INLINE void DRW_vbo_request ( GPUBatch batch,
GPUVertBuf **  vbo 
)

◆ DRW_vbo_requested()

BLI_INLINE bool DRW_vbo_requested ( GPUVertBuf vbo)