diff options
Diffstat (limited to 'source/blender/gpu/metal/mtl_state.mm')
-rw-r--r-- | source/blender/gpu/metal/mtl_state.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/gpu/metal/mtl_state.mm b/source/blender/gpu/metal/mtl_state.mm index cf7fbdba6b9..59c258a0d12 100644 --- a/source/blender/gpu/metal/mtl_state.mm +++ b/source/blender/gpu/metal/mtl_state.mm @@ -17,7 +17,7 @@ namespace blender::gpu { /** \name MTLStateManager * \{ */ -void MTLStateManager::mtl_state_init(void) +void MTLStateManager::mtl_state_init() { BLI_assert(context_); context_->pipeline_state_init(); @@ -36,7 +36,7 @@ MTLStateManager::MTLStateManager(MTLContext *ctx) : StateManager() set_mutable_state(mutable_state); } -void MTLStateManager::apply_state(void) +void MTLStateManager::apply_state() { this->set_state(this->state); this->set_mutable_state(this->mutable_state); @@ -45,7 +45,7 @@ void MTLStateManager::apply_state(void) static_cast<MTLFrameBuffer *>(context_->active_fb)->apply_state(); }; -void MTLStateManager::force_state(void) +void MTLStateManager::force_state() { /* Little exception for clip distances since they need to keep the old count correct. */ uint32_t clip_distances = current_.clip_distances; @@ -548,7 +548,7 @@ void MTLStateManager::issue_barrier(eGPUBarrier barrier_bits) /* Apple Silicon does not support memory barriers. * We do not currently need these due to implicit API guarantees. - * Note(Metal): MTLFence/MTLEvent may be required to synchronize work if + * NOTE(Metal): MTLFence/MTLEvent may be required to synchronize work if * untracked resources are ever used. */ if ([ctx->device hasUnifiedMemory]) { return; @@ -600,7 +600,7 @@ void MTLStateManager::texture_unbind(Texture *tex_) ctx->texture_unbind(mtl_tex); } -void MTLStateManager::texture_unbind_all(void) +void MTLStateManager::texture_unbind_all() { MTLContext *ctx = static_cast<MTLContext *>(unwrap(GPU_context_active_get())); BLI_assert(ctx); @@ -623,7 +623,7 @@ void MTLStateManager::image_unbind(Texture *tex_) this->texture_unbind(tex_); } -void MTLStateManager::image_unbind_all(void) +void MTLStateManager::image_unbind_all() { this->texture_unbind_all(); } |