Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_backend.hh
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | public: | ||||
| static bool metal_is_supported(); | static bool metal_is_supported(); | ||||
| static MTLBackend *get() | static MTLBackend *get() | ||||
| { | { | ||||
| return static_cast<MTLBackend *>(GPUBackend::get()); | return static_cast<MTLBackend *>(GPUBackend::get()); | ||||
| } | } | ||||
| void samplers_update() override; | void samplers_update() override; | ||||
| 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 */ | |||||
| } | |||||
| void compute_dispatch_indirect(StorageBuf *indirect_buf) override | void compute_dispatch_indirect(StorageBuf *indirect_buf) override | ||||
| { | { | ||||
| /* Placeholder */ | /* Placeholder */ | ||||
| } | } | ||||
| /* MTL Allocators need to be implemented in separate .mm files, due to allocation of Objective-C | /* MTL Allocators need to be implemented in separate .mm files, due to allocation of Objective-C | ||||
| * objects. */ | * objects. */ | ||||
| Show All 28 Lines | |||||