VERY experimental Nintendo Switch 2 emulator
C++
Vertex Shader: Zero OutputVertex to avoid denormals
Yuri Kunde Schlesnerd151d797b1c2
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cppindex e31bc3bc73..bed5081a0e 100644--- a/src/video_core/vertex_shader.cpp+++ b/src/video_core/vertex_shader.cpp@@ -469,6 +469,10 @@ OutputVertex RunShader(const InputVertex& input, int num_attributes)// Setup output register tableOutputVertex ret;+ // Zero output so that attributes which aren't output won't have denormals in them, which will+ // slow us down later.+ memset(&ret, 0, sizeof(ret));+for (int i = 0; i < 7; ++i) {const auto& output_register_map = registers.vs_output_attributes[i];