From 4ea55a855a1dd47bd2f82e7c760c567428aaded5 Mon Sep 17 00:00:00 2001 From: Exverge Date: Sun, 7 Apr 2024 14:03:32 -0400 Subject: [PATCH] fix: clang format --- src/video_core/renderer_metal/mtl_buffer_cache.cpp | 2 +- src/video_core/renderer_metal/mtl_texture_cache.cpp | 3 ++- src/video_core/renderer_metal/renderer_metal.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/video_core/renderer_metal/mtl_buffer_cache.cpp b/src/video_core/renderer_metal/mtl_buffer_cache.cpp index 59e872a5df..61a4570920 100644 --- a/src/video_core/renderer_metal/mtl_buffer_cache.cpp +++ b/src/video_core/renderer_metal/mtl_buffer_cache.cpp @@ -81,7 +81,7 @@ void BufferCacheRuntime::Finish() {} void BufferCacheRuntime::CopyBuffer(MTL::Buffer* dst_buffer, MTL::Buffer* src_buffer, std::span copies, bool barrier, bool can_reorder_upload) { - // HACK: needs to be commented out, since it iterrupts render pass + // HACK: needs to be commented out, since it interrupts render pass // for (const VideoCommon::BufferCopy& copy : copies) { // command_recorder.GetBlitCommandEncoder()->copyFromBuffer( // src_buffer, copy.src_offset, dst_buffer, copy.dst_offset, copy.size); diff --git a/src/video_core/renderer_metal/mtl_texture_cache.cpp b/src/video_core/renderer_metal/mtl_texture_cache.cpp index 8d7c4bef94..ccb658ab73 100644 --- a/src/video_core/renderer_metal/mtl_texture_cache.cpp +++ b/src/video_core/renderer_metal/mtl_texture_cache.cpp @@ -103,7 +103,8 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI ImageId image_id_, Image& image) : VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr} { using Shader::TextureType; - // TODO: For whatever reason, some images's internal objc objects is NULL, metal-cpp provides no method to check for this + // TODO: For whatever reason, some images's internal objc objects is NULL + // TODO: metal-cpp provides no method to check for this texture = image.GetHandle()->retain(); // TODO: create texture view diff --git a/src/video_core/renderer_metal/renderer_metal.cpp b/src/video_core/renderer_metal/renderer_metal.cpp index 3770119c23..d1a35df905 100644 --- a/src/video_core/renderer_metal/renderer_metal.cpp +++ b/src/video_core/renderer_metal/renderer_metal.cpp @@ -14,8 +14,8 @@ namespace Metal { RendererMetal::RendererMetal(Core::Frontend::EmuWindow& emu_window, Tegra::MaxwellDeviceMemoryManager& device_memory_, Tegra::GPU& gpu_, std::unique_ptr context_) - : RendererBase(emu_window, std::move(context_)), device_memory{device_memory_}, gpu{gpu_}, - device{}, command_recorder(device), + : RendererBase(emu_window, std::move(context_)), + device_memory{device_memory_}, gpu{gpu_}, device{}, command_recorder(device), swap_chain(device, command_recorder, static_cast(render_window.GetWindowInfo().render_surface)), rasterizer(gpu_, device_memory, device, command_recorder, swap_chain) {