Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_batch.h
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | typedef enum eGPUBatchFlag { | ||||
| GPU_BATCH_DIRTY = (1 << 17), | GPU_BATCH_DIRTY = (1 << 17), | ||||
| } eGPUBatchFlag; | } eGPUBatchFlag; | ||||
| #define GPU_BATCH_OWNS_NONE GPU_BATCH_INVALID | #define GPU_BATCH_OWNS_NONE GPU_BATCH_INVALID | ||||
| BLI_STATIC_ASSERT(GPU_BATCH_OWNS_INDEX < GPU_BATCH_INIT, | BLI_STATIC_ASSERT(GPU_BATCH_OWNS_INDEX < GPU_BATCH_INIT, | ||||
| "eGPUBatchFlag: Error: status flags are shadowed by the ownership bits!") | "eGPUBatchFlag: Error: status flags are shadowed by the ownership bits!") | ||||
| ENUM_OPERATORS(eGPUBatchFlag) | ENUM_OPERATORS(eGPUBatchFlag, GPU_BATCH_DIRTY) | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** | /** | ||||
| * IMPORTANT: Do not allocate manually as the real struct is bigger (i.e: GLBatch). This is only | * IMPORTANT: Do not allocate manually as the real struct is bigger (i.e: GLBatch). This is only | ||||
| * the common and "public" part of the struct. Use the provided allocator. | * the common and "public" part of the struct. Use the provided allocator. | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||