Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_vertex_buffer.hh
| Show All 36 Lines | private: | ||||
| uint64_t alloc_size_ = 0; | uint64_t alloc_size_ = 0; | ||||
| /** Whether existing allocation has been submitted for use by the GPU. */ | /** Whether existing allocation has been submitted for use by the GPU. */ | ||||
| bool contents_in_flight_ = false; | bool contents_in_flight_ = false; | ||||
| /* Fetch Metal buffer and offset into allocation if necessary. | /* Fetch Metal buffer and offset into allocation if necessary. | ||||
| * Access limited to friend classes. */ | * Access limited to friend classes. */ | ||||
| id<MTLBuffer> get_metal_buffer() | id<MTLBuffer> get_metal_buffer() | ||||
| { | { | ||||
| BLI_assert(vbo_ != nullptr); | |||||
| vbo_->debug_ensure_used(); | vbo_->debug_ensure_used(); | ||||
| return vbo_->get_metal_buffer(); | return vbo_->get_metal_buffer(); | ||||
| } | } | ||||
| public: | public: | ||||
| MTLVertBuf(); | MTLVertBuf(); | ||||
| ~MTLVertBuf(); | ~MTLVertBuf(); | ||||
| Show All 23 Lines | |||||