From 5b7a0fa3f6d3a305e932499e5feac3ac679ad3a4 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Thu, 14 Nov 2024 17:10:42 +0100 Subject: [PATCH] warn about invalid primitive mode --- .../LegacyShaderDecompiler/LatteDecompilerEmitMSLHeader.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitMSLHeader.hpp b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitMSLHeader.hpp index 0ca4422a..d10854bf 100644 --- a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitMSLHeader.hpp +++ b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitMSLHeader.hpp @@ -366,7 +366,7 @@ namespace LatteDecompiler src->add("#define VERTICES_PER_VERTEX_PRIMITIVE 3" _CRLF); break; default: - cemu_assert_suspicious(); + cemuLog_log(LogType::Force, "Unknown vertex out primitive type {}", vsOutPrimType); break; } if (decompilerContext->shaderType == LatteConst::ShaderType::Geometry) @@ -386,7 +386,7 @@ namespace LatteDecompiler src->add("#define GET_PRIMITIVE_COUNT(vertexCount) (vertexCount - 2)" _CRLF); break; default: - cemu_assert_suspicious(); + cemuLog_log(LogType::Force, "Unknown geometry out primitive type {}", gsOutPrimType); break; } }