mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
VideoCore/Shader: Add constness to methods
This commit is contained in:
parent
1e1f939817
commit
bd82cffd0b
|
@ -120,7 +120,7 @@ void ShaderSetup::Setup() {
|
||||||
|
|
||||||
MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240));
|
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);
|
ASSERT(entry_point < 1024);
|
||||||
|
|
||||||
MICROPROFILE_SCOPE(GPU_Shader);
|
MICROPROFILE_SCOPE(GPU_Shader);
|
||||||
|
@ -139,7 +139,7 @@ void ShaderSetup::Run(UnitState& state, unsigned int entry_point) {
|
||||||
}
|
}
|
||||||
|
|
||||||
DebugData<true> ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
DebugData<true> ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
||||||
unsigned int entry_point) {
|
unsigned int entry_point) const {
|
||||||
ASSERT(entry_point < 1024);
|
ASSERT(entry_point < 1024);
|
||||||
|
|
||||||
UnitState state;
|
UnitState state;
|
||||||
|
|
|
@ -191,7 +191,7 @@ struct ShaderSetup {
|
||||||
* Runs the currently setup shader
|
* Runs the currently setup shader
|
||||||
* @param state Shader unit state, must be setup per shader and per shader unit
|
* @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
|
* 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
|
* @return Debug information for this shader with regards to the given vertex
|
||||||
*/
|
*/
|
||||||
DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
||||||
unsigned int entry_point);
|
unsigned int entry_point) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Shader
|
} // namespace Shader
|
||||||
|
|
Loading…
Reference in a new issue