mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-07 15:48:15 +01:00
use logging instead of printing
This commit is contained in:
parent
778037f335
commit
c65123bbbe
@ -310,7 +310,7 @@ MTL::VertexFormat GetMtlVertexFormat(uint8 format)
|
||||
case FMT_2_10_10_10:
|
||||
return MTL::VertexFormatUInt; // verified to match OpenGL
|
||||
default:
|
||||
printf("unsupported vertex format %u\n", (uint32)format);
|
||||
cemuLog_log(LogType::Force, "unsupported vertex format {}", (uint32)format);
|
||||
assert_dbg();
|
||||
return MTL::VertexFormatInvalid;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ MetalHybridComputePipeline::MetalHybridComputePipeline(class MetalRenderer* mtlR
|
||||
vertexFunction->release();
|
||||
if (error)
|
||||
{
|
||||
printf("error creating hybrid render pipeline state: %s\n", error->localizedDescription()->utf8String());
|
||||
cemuLog_log(LogType::Force, "error creating hybrid render pipeline state: {}", error->localizedDescription()->utf8String());
|
||||
error->release();
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "Cafe/HW/Latte/Core/LatteShader.h"
|
||||
#include "Cafe/HW/Latte/Core/LatteIndices.h"
|
||||
#include "Cemu/Logging/CemuDebugLogging.h"
|
||||
#include "Cemu/Logging/CemuLogging.h"
|
||||
#include "HW/Latte/Core/LatteConst.h"
|
||||
#include "HW/Latte/Renderer/Metal/MetalCommon.h"
|
||||
#include "HW/Latte/Renderer/Metal/MetalLayerHandle.h"
|
||||
@ -938,12 +939,6 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
|
||||
LatteDecompilerShader* vertexShader = LatteSHRC_GetActiveVertexShader();
|
||||
LatteDecompilerShader* geometryShader = LatteSHRC_GetActiveGeometryShader();
|
||||
LatteDecompilerShader* pixelShader = LatteSHRC_GetActivePixelShader();
|
||||
// TODO: is this even needed? Also, should go to draw_beginSequence
|
||||
if (!vertexShader || !static_cast<RendererShaderMtl*>(vertexShader->shader)->GetFunction())
|
||||
{
|
||||
printf("no vertex function, skipping draw\n");
|
||||
return;
|
||||
}
|
||||
const auto fetchShader = LatteSHRC_GetActiveFetchShader();
|
||||
|
||||
bool neverSkipAccurateBarrier = false;
|
||||
|
@ -20,7 +20,7 @@ RendererShaderMtl::RendererShaderMtl(MetalRenderer* mtlRenderer, ShaderType type
|
||||
MTL::Library* library = m_mtlr->GetDevice()->newLibrary(ToNSString(mslCode), nullptr, &error);
|
||||
if (error)
|
||||
{
|
||||
printf("failed to create library (error: %s) -> source:\n%s\n", error->localizedDescription()->utf8String(), mslCode.c_str());
|
||||
cemuLog_log(LogType::Force, "failed to create library: {}", error->localizedDescription()->utf8String());
|
||||
error->release();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user