summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-25 03:30:11 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-25 03:30:11 +0200
commitac0104b8b0584023cfbd7a4800f1ca1db890188f (patch)
treea1651d48113413e2de1e6e309362511b1ff7ffa8 /src/video_core/shader/shader.cpp
parentMerge pull request #1063 from Subv/hw_renderer_debug_fb (diff)
parentIntegrate the MicroProfile profiling library (diff)
downloadyuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.gz
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.bz2
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.lz
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.xz
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.zst
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.zip
Diffstat (limited to 'src/video_core/shader/shader.cpp')
-rw-r--r--src/video_core/shader/shader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index 4e9836c80..be5588c00 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -9,6 +9,7 @@
#include "common/hash.h"
#include "common/make_unique.h"
+#include "common/microprofile.h"
#include "common/profiler.h"
#include "video_core/debug_utils/debug_utils.h"
@@ -55,11 +56,13 @@ void Shutdown() {
}
static Common::Profiling::TimingCategory shader_category("Vertex Shader");
+MICROPROFILE_DEFINE(GPU_VertexShader, "GPU", "Vertex Shader", MP_RGB(50, 50, 240));
OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attributes) {
auto& config = g_state.regs.vs;
Common::Profiling::ScopeTimer timer(shader_category);
+ MICROPROFILE_SCOPE(GPU_VertexShader);
state.program_counter = config.main_offset;
state.debug.max_offset = 0;