fix: clang format
This commit is contained in:
parent
90b8671ddb
commit
4ea55a855a
3 changed files with 5 additions and 4 deletions
|
@ -81,7 +81,7 @@ void BufferCacheRuntime::Finish() {}
|
||||||
void BufferCacheRuntime::CopyBuffer(MTL::Buffer* dst_buffer, MTL::Buffer* src_buffer,
|
void BufferCacheRuntime::CopyBuffer(MTL::Buffer* dst_buffer, MTL::Buffer* src_buffer,
|
||||||
std::span<const VideoCommon::BufferCopy> copies, bool barrier,
|
std::span<const VideoCommon::BufferCopy> copies, bool barrier,
|
||||||
bool can_reorder_upload) {
|
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) {
|
// for (const VideoCommon::BufferCopy& copy : copies) {
|
||||||
// command_recorder.GetBlitCommandEncoder()->copyFromBuffer(
|
// command_recorder.GetBlitCommandEncoder()->copyFromBuffer(
|
||||||
// src_buffer, copy.src_offset, dst_buffer, copy.dst_offset, copy.size);
|
// src_buffer, copy.src_offset, dst_buffer, copy.dst_offset, copy.size);
|
||||||
|
|
|
@ -103,7 +103,8 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI
|
||||||
ImageId image_id_, Image& image)
|
ImageId image_id_, Image& image)
|
||||||
: VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr} {
|
: VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr} {
|
||||||
using Shader::TextureType;
|
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();
|
texture = image.GetHandle()->retain();
|
||||||
|
|
||||||
// TODO: create texture view
|
// TODO: create texture view
|
||||||
|
|
|
@ -14,8 +14,8 @@ namespace Metal {
|
||||||
RendererMetal::RendererMetal(Core::Frontend::EmuWindow& emu_window,
|
RendererMetal::RendererMetal(Core::Frontend::EmuWindow& emu_window,
|
||||||
Tegra::MaxwellDeviceMemoryManager& device_memory_, Tegra::GPU& gpu_,
|
Tegra::MaxwellDeviceMemoryManager& device_memory_, Tegra::GPU& gpu_,
|
||||||
std::unique_ptr<Core::Frontend::GraphicsContext> context_)
|
std::unique_ptr<Core::Frontend::GraphicsContext> context_)
|
||||||
: RendererBase(emu_window, std::move(context_)), device_memory{device_memory_}, gpu{gpu_},
|
: RendererBase(emu_window, std::move(context_)),
|
||||||
device{}, command_recorder(device),
|
device_memory{device_memory_}, gpu{gpu_}, device{}, command_recorder(device),
|
||||||
swap_chain(device, command_recorder,
|
swap_chain(device, command_recorder,
|
||||||
static_cast<CA::MetalLayer*>(render_window.GetWindowInfo().render_surface)),
|
static_cast<CA::MetalLayer*>(render_window.GetWindowInfo().render_surface)),
|
||||||
rasterizer(gpu_, device_memory, device, command_recorder, swap_chain) {
|
rasterizer(gpu_, device_memory, device, command_recorder, swap_chain) {
|
||||||
|
|
Loading…
Reference in a new issue