fix: clang format

This commit is contained in:
Exverge 2024-04-07 14:03:32 -04:00
parent 90b8671ddb
commit 4ea55a855a
No known key found for this signature in database
GPG key ID: 19AAFC0AC6A9B35A
3 changed files with 5 additions and 4 deletions

View file

@ -81,7 +81,7 @@ void BufferCacheRuntime::Finish() {}
void BufferCacheRuntime::CopyBuffer(MTL::Buffer* dst_buffer, MTL::Buffer* src_buffer,
std::span<const VideoCommon::BufferCopy> 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);

View file

@ -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

View file

@ -14,8 +14,8 @@ namespace Metal {
RendererMetal::RendererMetal(Core::Frontend::EmuWindow& emu_window,
Tegra::MaxwellDeviceMemoryManager& device_memory_, Tegra::GPU& gpu_,
std::unique_ptr<Core::Frontend::GraphicsContext> 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<CA::MetalLayer*>(render_window.GetWindowInfo().render_surface)),
rasterizer(gpu_, device_memory, device, command_recorder, swap_chain) {