diff options
Diffstat (limited to 'source/blender/gpu/metal/mtl_backend.hh')
-rw-r--r-- | source/blender/gpu/metal/mtl_backend.hh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/gpu/metal/mtl_backend.hh b/source/blender/gpu/metal/mtl_backend.hh index 9044d8517ab..3e09408e43e 100644 --- a/source/blender/gpu/metal/mtl_backend.hh +++ b/source/blender/gpu/metal/mtl_backend.hh @@ -35,19 +35,24 @@ class MTLBackend : public GPUBackend { return MTLBackend::capabilities; } - inline ~MTLBackend() + ~MTLBackend() { MTLBackend::platform_exit(); } + void delete_resources() + { + /* Delete any resources with context active. */ + } + static bool metal_is_supported(); - inline static MTLBackend *get() + static MTLBackend *get() { return static_cast<MTLBackend *>(GPUBackend::get()); } void samplers_update() override; - inline void compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len) override + void compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len) override { /* Placeholder */ } |