From bd82cffd0bf5d61eab8c7c856bcc284b1a77e33b Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Fri, 16 Dec 2016 22:32:35 -0800 Subject: VideoCore/Shader: Add constness to methods --- src/video_core/shader/shader.cpp | 4 ++-- src/video_core/shader/shader.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index 936db0582..ae696533f 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp @@ -120,7 +120,7 @@ void ShaderSetup::Setup() { MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240)); -void ShaderSetup::Run(UnitState& state, unsigned int entry_point) { +void ShaderSetup::Run(UnitState& state, unsigned int entry_point) const { ASSERT(entry_point < 1024); MICROPROFILE_SCOPE(GPU_Shader); @@ -139,7 +139,7 @@ void ShaderSetup::Run(UnitState& state, unsigned int entry_point) { } DebugData ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_attributes, - unsigned int entry_point) { + unsigned int entry_point) const { ASSERT(entry_point < 1024); UnitState state; diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index d21f481ab..44b9861e9 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h @@ -191,7 +191,7 @@ struct ShaderSetup { * Runs the currently setup shader * @param state Shader unit state, must be setup per shader and per shader unit */ - void Run(UnitState& state, unsigned int entry_point); + void Run(UnitState& state, unsigned int entry_point) const; /** * Produce debug information based on the given shader and input vertex @@ -201,7 +201,7 @@ struct ShaderSetup { * @return Debug information for this shader with regards to the given vertex */ DebugData ProduceDebugInfo(const InputVertex& input, int num_attributes, - unsigned int entry_point); + unsigned int entry_point) const; }; } // namespace Shader -- cgit v1.2.3