|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <platform/graphics/gpu.h>
Public Member Functions | |
| virtual void * | nativeHandle () const =0 |
| Returns the backend-specific native handle (MTL::Buffer*, VkBuffer, etc.). | |
| virtual void | upload (GraphicsDevice *device, const void *data, size_t size)=0 |
| Upload data to the GPU buffer. | |
| virtual | ~HardwareBuffer ()=default |
Abstract base for GPU buffer objects. Backend implementations (Metal, Vulkan) provide concrete allocation and upload logic.
|
virtualdefault |
|
pure virtual |
Returns the backend-specific native handle (MTL::Buffer*, VkBuffer, etc.).
Implemented in visutwin::canvas::gpu::MetalBuffer.
|
pure virtual |
Upload data to the GPU buffer.
Implemented in visutwin::canvas::gpu::MetalBuffer.