16#include <Cocoa/Cocoa.h>
17#include <Metal/Metal.h>
18#include <QuartzCore/QuartzCore.h>
40 bool is_wrapper_ =
false;
47 bool contents_in_flight_ =
false;
56 vbo_->debug_ensure_used();
57 return vbo_->get_metal_buffer();
69 uint source_first_vertex,
70 uint dest_first_vertex,
73 void read(
void *
data)
const override;
Read Blender memory allocation and freeing.
MEM_CXX_CLASS_ALLOC_FUNCS("MTLVertBuf")
void resize_data() override
void wrap_handle(uint64_t handle) override
void bind_as_ssbo(uint binding) override
void upload_data() override
void copy_sub(VertBuf &source_buf, uint source_first_vertex, uint dest_first_vertex, uint vertex_len) override
Copy from part of source vertex buffer into the vertex buffer.
friend class MTLStorageBuf
void update_sub(uint start, uint len, const void *data) override
void read(void *data) const override
friend class MTLBottomLevelAS
void bind_as_texture(uint binding) override
void acquire_data() override
void release_data() override
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
MTLVertexFormat gpu_vertex_format_to_metal(VertAttrType vert_format)
MTLVertexFormat gpu_type_to_metal_vertex_format(shader::Type type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
BMesh const char void * data