Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_element.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
| void GPU_indexbuf_set_line_restart(GPUIndexBufBuilder *builder, uint elem); | void GPU_indexbuf_set_line_restart(GPUIndexBufBuilder *builder, uint elem); | ||||
| void GPU_indexbuf_set_tri_restart(GPUIndexBufBuilder *builder, uint elem); | void GPU_indexbuf_set_tri_restart(GPUIndexBufBuilder *builder, uint elem); | ||||
| GPUIndexBuf *GPU_indexbuf_build(GPUIndexBufBuilder *); | GPUIndexBuf *GPU_indexbuf_build(GPUIndexBufBuilder *); | ||||
| void GPU_indexbuf_build_in_place(GPUIndexBufBuilder *, GPUIndexBuf *); | void GPU_indexbuf_build_in_place(GPUIndexBufBuilder *, GPUIndexBuf *); | ||||
| /* Create a subrange of an existing indexbuffer. */ | /* Create a subrange of an existing indexbuffer. */ | ||||
| GPUIndexBuf *GPU_indexbuf_create_subrange(GPUIndexBuf *ibo, uint start, uint length); | GPUIndexBuf *GPU_indexbuf_create_subrange(GPUIndexBuf *ibo, uint start, uint length); | ||||
| void GPU_indexbuf_create_subrange_in_place(GPUIndexBuf *r_ibo, | |||||
| GPUIndexBuf *ibo, | |||||
| uint start, | |||||
| uint length); | |||||
| void GPU_indexbuf_discard(GPUIndexBuf *); | void GPU_indexbuf_discard(GPUIndexBuf *); | ||||
| int GPU_indexbuf_primitive_len(GPUPrimType prim_type); | int GPU_indexbuf_primitive_len(GPUPrimType prim_type); | ||||
| /* Macros */ | /* Macros */ | ||||
| #define GPU_INDEXBUF_DISCARD_SAFE(elem) \ | #define GPU_INDEXBUF_DISCARD_SAFE(elem) \ | ||||
| do { \ | do { \ | ||||
| if (elem != NULL) { \ | if (elem != NULL) { \ | ||||
| GPU_indexbuf_discard(elem); \ | GPU_indexbuf_discard(elem); \ | ||||
| elem = NULL; \ | elem = NULL; \ | ||||
| } \ | } \ | ||||
| } while (0) | } while (0) | ||||
| #endif /* __GPU_ELEMENT_H__ */ | #endif /* __GPU_ELEMENT_H__ */ | ||||