summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-12 20:50:17 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-12 20:59:52 +0200
commitdef5913d19177aecd135e4a9f2f53d1fb8400943 (patch)
tree416be8b56a87d07aec3e798d48544c2b4afe9809 /src/video_core/vertex_shader.cpp
parentMerge pull request #748 from Subv/tls_max (diff)
downloadyuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar.gz
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar.bz2
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar.lz
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar.xz
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.tar.zst
yuzu-def5913d19177aecd135e4a9f2f53d1fb8400943.zip
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 885b7de59..4734e546a 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -12,6 +12,7 @@
#include <nihstro/shader_bytecode.h>
+#include "common/profiler.h"
#include "pica.h"
#include "vertex_shader.h"
@@ -574,7 +575,11 @@ static void ProcessShaderCode(VertexShaderState& state) {
}
}
+static Common::Profiling::TimingCategory shader_category("Vertex Shader");
+
OutputVertex RunShader(const InputVertex& input, int num_attributes) {
+ Common::Profiling::ScopeTimer timer(shader_category);
+
VertexShaderState state;
const u32* main = &shader_memory[registers.vs_main_offset];