mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-01 13:34:18 +01:00
remove MetalLogging log type
This commit is contained in:
parent
763e50c7b8
commit
2c9f627f72
@ -105,5 +105,5 @@ LatteTextureView* LatteTextureMtl::CreateView(Latte::E_DIM dim, Latte::E_GX2SURF
|
||||
|
||||
void LatteTextureMtl::AllocateOnHost()
|
||||
{
|
||||
cemuLog_log(LogType::MetalLogging, "not implemented");
|
||||
cemuLog_log(LogType::Force, "not implemented");
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ MTL::PrimitiveType GetMtlPrimitiveType(LattePrimitiveMode primitiveMode)
|
||||
case Latte::LATTE_VGT_PRIMITIVE_TYPE::E_PRIMITIVE_TYPE::RECTS:
|
||||
return MTL::PrimitiveTypeTriangle; // rects are emulated as 2 triangles
|
||||
default:
|
||||
cemuLog_logDebug(LogType::Force, "Metal-Unsupported: Render pipeline with primitive mode {} created", primitiveMode);
|
||||
cemuLog_log(LogType::Force, "Unsupported primitive mode {}", primitiveMode);
|
||||
cemu_assert_debug(false);
|
||||
return MTL::PrimitiveTypeTriangle;
|
||||
}
|
||||
|
@ -46,13 +46,13 @@ void MetalMemoryManager::InitBufferCache(size_t size)
|
||||
m_bufferCache = m_mtlr->GetDevice()->newBuffer(memory_getPointerFromVirtualOffset(m_importedMemBaseAddress), m_hostAllocationSize, MTL::ResourceStorageModeShared, nullptr);
|
||||
if (!m_bufferCache)
|
||||
{
|
||||
cemuLog_logDebug(LogType::Force, "Failed to import host memory as a buffer, using device shared mode instead");
|
||||
cemuLog_log(LogType::Force, "Failed to import host memory as a buffer, using device shared mode instead");
|
||||
m_bufferCacheMode = BufferCacheMode::DeviceShared;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cemuLog_logDebug(LogType::Force, "Host buffer cache mode is only available on unified memory systems, using device shared mode instead");
|
||||
cemuLog_log(LogType::Force, "Host buffer cache mode is only available on unified memory systems, using device shared mode instead");
|
||||
m_bufferCacheMode = BufferCacheMode::DeviceShared;
|
||||
}
|
||||
}
|
||||
|
@ -245,6 +245,10 @@ void MetalRenderer::SwapBuffers(bool swapTV, bool swapDRC)
|
||||
m_performanceMonitor.ResetPerFrameData();
|
||||
}
|
||||
|
||||
void MetalRenderer::HandleScreenshotRequest(LatteTextureView* texView, bool padView) {
|
||||
cemuLog_log(LogType::Force, "Screenshots are not yet supported on Metal");
|
||||
}
|
||||
|
||||
void MetalRenderer::DrawBackbufferQuad(LatteTextureView* texView, RendererOutputShader* shader, bool useLinearTexFilter,
|
||||
sint32 imageX, sint32 imageY, sint32 imageWidth, sint32 imageHeight,
|
||||
bool padView, bool clearBackground)
|
||||
|
@ -186,9 +186,7 @@ public:
|
||||
void DrawEmptyFrame(bool mainWindow) override;
|
||||
void SwapBuffers(bool swapTV, bool swapDRC) override;
|
||||
|
||||
void HandleScreenshotRequest(LatteTextureView* texView, bool padView) override {
|
||||
cemuLog_log(LogType::MetalLogging, "Screenshots are not yet supported on Metal");
|
||||
}
|
||||
void HandleScreenshotRequest(LatteTextureView* texView, bool padView) override;
|
||||
|
||||
void DrawBackbufferQuad(LatteTextureView* texView, RendererOutputShader* shader, bool useLinearTexFilter,
|
||||
sint32 imageX, sint32 imageY, sint32 imageWidth, sint32 imageHeight,
|
||||
|
@ -59,7 +59,6 @@ const std::map<LogType, std::string> g_logging_window_mapping
|
||||
{LogType::TextureReadback, "Texture readback"},
|
||||
{LogType::OpenGLLogging, "OpenGL debug output"},
|
||||
{LogType::VulkanValidation, "Vulkan validation layer"},
|
||||
{LogType::MetalLogging, "Metal debug output"},
|
||||
};
|
||||
|
||||
bool cemuLog_advancedPPCLoggingEnabled()
|
||||
|
@ -20,7 +20,6 @@ enum class LogType : sint32
|
||||
OpenGLLogging = 10, // OpenGL debug logging
|
||||
TextureCache = 11, // texture cache warnings and info
|
||||
VulkanValidation = 12, // Vulkan validation layer
|
||||
MetalLogging = 13, // Metal debug logging
|
||||
Patches = 14,
|
||||
CoreinitMem = 8, // coreinit memory functions
|
||||
CoreinitMP = 15,
|
||||
|
@ -2232,7 +2232,6 @@ void MainWindow::RecreateMenu()
|
||||
debugLoggingMenu->AppendSeparator();
|
||||
debugLoggingMenu->AppendCheckItem(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::OpenGLLogging), _("&OpenGL debug output"), wxEmptyString)->Check(cemuLog_isLoggingEnabled(LogType::OpenGLLogging));
|
||||
debugLoggingMenu->AppendCheckItem(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::VulkanValidation), _("&Vulkan validation layer (slow)"), wxEmptyString)->Check(cemuLog_isLoggingEnabled(LogType::VulkanValidation));
|
||||
debugLoggingMenu->AppendCheckItem(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::MetalLogging), _("&Metal debug output"), wxEmptyString)->Check(cemuLog_isLoggingEnabled(LogType::MetalLogging));
|
||||
debugLoggingMenu->AppendCheckItem(MAINFRAME_MENU_ID_DEBUG_ADVANCED_PPC_INFO, _("&Log PPC context for API"), wxEmptyString)->Check(cemuLog_advancedPPCLoggingEnabled());
|
||||
m_loggingSubmenu = debugLoggingMenu;
|
||||
// debug->dump submenu
|
||||
@ -2302,7 +2301,6 @@ void MainWindow::RecreateMenu()
|
||||
// these options cant be toggled after the renderer backend is initialized:
|
||||
m_loggingSubmenu->Enable(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::OpenGLLogging), false);
|
||||
m_loggingSubmenu->Enable(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::VulkanValidation), false);
|
||||
m_loggingSubmenu->Enable(MAINFRAME_MENU_ID_DEBUG_LOGGING0 + stdx::to_underlying(LogType::MetalLogging), false);
|
||||
|
||||
UpdateNFCMenu();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user