11#include <Cocoa/Cocoa.h>
12#include <Metal/Metal.h>
13#include <QuartzCore/QuartzCore.h>
33 ::GPUTexture *buffer_texture_ =
nullptr;
36 bool is_wrapper_ =
false;
41 bool contents_in_flight_ =
false;
47 id<MTLBuffer> get_metal_buffer()
63 void read(
void *data)
const override;
Read Guarded memory(de)allocation.
id< MTLBuffer > get_metal_buffer() const
void duplicate_data(VertBuf *dst) override
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 update_sub(uint start, uint len, const void *data) override
void read(void *data) const override
void bind_as_texture(uint binding) override
void acquire_data() override
void release_data() override
unsigned __int64 uint64_t