Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_vertex_buffer.h
| Show All 32 Lines | typedef enum { | ||||
| /** Initial state. */ | /** Initial state. */ | ||||
| GPU_VERTBUF_INVALID = 0, | GPU_VERTBUF_INVALID = 0, | ||||
| /** Was init with a vertex format. */ | /** Was init with a vertex format. */ | ||||
| GPU_VERTBUF_INIT = (1 << 0), | GPU_VERTBUF_INIT = (1 << 0), | ||||
| /** Data has been touched and need to be reuploaded. */ | /** Data has been touched and need to be reuploaded. */ | ||||
| GPU_VERTBUF_DATA_DIRTY = (1 << 1), | GPU_VERTBUF_DATA_DIRTY = (1 << 1), | ||||
| /** The buffer has been created inside GPU memory. */ | /** The buffer has been created inside GPU memory. */ | ||||
| GPU_VERTBUF_DATA_UPLOADED = (1 << 2), | GPU_VERTBUF_DATA_UPLOADED = (1 << 2), | ||||
| GPU_VERTBUF_STATUS_MAX_DONT_USE = ~(0) | |||||
| } GPUVertBufStatus; | } GPUVertBufStatus; | ||||
| ENUM_OPERATORS(GPUVertBufStatus) | ENUM_OPERATORS(GPUVertBufStatus, GPU_VERTBUF_STATUS_MAX_DONT_USE) | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** | /** | ||||
| * How to create a #GPUVertBuf: | * How to create a #GPUVertBuf: | ||||
| * 1) verts = GPU_vertbuf_calloc() | * 1) verts = GPU_vertbuf_calloc() | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||