summaryrefslogtreecommitdiff
path: root/src/video_core/shader/shader.cpp
diff options
context:
space:
mode:
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 @@
9 9
10#include "common/hash.h" 10#include "common/hash.h"
11#include "common/make_unique.h" 11#include "common/make_unique.h"
12#include "common/microprofile.h"
12#include "common/profiler.h" 13#include "common/profiler.h"
13 14
14#include "video_core/debug_utils/debug_utils.h" 15#include "video_core/debug_utils/debug_utils.h"
@@ -55,11 +56,13 @@ void Shutdown() {
55} 56}
56 57
57static Common::Profiling::TimingCategory shader_category("Vertex Shader"); 58static Common::Profiling::TimingCategory shader_category("Vertex Shader");
59MICROPROFILE_DEFINE(GPU_VertexShader, "GPU", "Vertex Shader", MP_RGB(50, 50, 240));
58 60
59OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attributes) { 61OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attributes) {
60 auto& config = g_state.regs.vs; 62 auto& config = g_state.regs.vs;
61 63
62 Common::Profiling::ScopeTimer timer(shader_category); 64 Common::Profiling::ScopeTimer timer(shader_category);
65 MICROPROFILE_SCOPE(GPU_VertexShader);
63 66
64 state.program_counter = config.main_offset; 67 state.program_counter = config.main_offset;
65 state.debug.max_offset = 0; 68 state.debug.max_offset = 0;