forked from ShuriZma/suyu
fix: clang format
This commit is contained in:
parent
90b8671ddb
commit
4ea55a855a
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue