diff options
| author | 2016-12-16 22:32:35 -0800 | |
|---|---|---|
| committer | 2017-01-25 18:53:23 -0800 | |
| commit | bd82cffd0bf5d61eab8c7c856bcc284b1a77e33b (patch) | |
| tree | 8b4d2973f30be643a9d688cd310470d6d7748da1 /src | |
| parent | VideoCore/Shader: Use only entry_point as ShaderSetup param (diff) | |
| download | yuzu-bd82cffd0bf5d61eab8c7c856bcc284b1a77e33b.tar.gz yuzu-bd82cffd0bf5d61eab8c7c856bcc284b1a77e33b.tar.xz yuzu-bd82cffd0bf5d61eab8c7c856bcc284b1a77e33b.zip | |
VideoCore/Shader: Add constness to methods
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 4 | ||||
| -rw-r--r-- | 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() { | |||
| 120 | 120 | ||
| 121 | MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240)); | 121 | MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240)); |
| 122 | 122 | ||
| 123 | void ShaderSetup::Run(UnitState& state, unsigned int entry_point) { | 123 | void ShaderSetup::Run(UnitState& state, unsigned int entry_point) const { |
| 124 | ASSERT(entry_point < 1024); | 124 | ASSERT(entry_point < 1024); |
| 125 | 125 | ||
| 126 | MICROPROFILE_SCOPE(GPU_Shader); | 126 | MICROPROFILE_SCOPE(GPU_Shader); |
| @@ -139,7 +139,7 @@ void ShaderSetup::Run(UnitState& state, unsigned int entry_point) { | |||
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | DebugData<true> ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_attributes, | 141 | DebugData<true> ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_attributes, |
| 142 | unsigned int entry_point) { | 142 | unsigned int entry_point) const { |
| 143 | ASSERT(entry_point < 1024); | 143 | ASSERT(entry_point < 1024); |
| 144 | 144 | ||
| 145 | UnitState state; | 145 | 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 { | |||
| 191 | * Runs the currently setup shader | 191 | * Runs the currently setup shader |
| 192 | * @param state Shader unit state, must be setup per shader and per shader unit | 192 | * @param state Shader unit state, must be setup per shader and per shader unit |
| 193 | */ | 193 | */ |
| 194 | void Run(UnitState& state, unsigned int entry_point); | 194 | void Run(UnitState& state, unsigned int entry_point) const; |
| 195 | 195 | ||
| 196 | /** | 196 | /** |
| 197 | * Produce debug information based on the given shader and input vertex | 197 | * Produce debug information based on the given shader and input vertex |
| @@ -201,7 +201,7 @@ struct ShaderSetup { | |||
| 201 | * @return Debug information for this shader with regards to the given vertex | 201 | * @return Debug information for this shader with regards to the given vertex |
| 202 | */ | 202 | */ |
| 203 | DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes, | 203 | DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes, |
| 204 | unsigned int entry_point); | 204 | unsigned int entry_point) const; |
| 205 | }; | 205 | }; |
| 206 | 206 | ||
| 207 | } // namespace Shader | 207 | } // namespace Shader |