Merge pull request #901 from lioncash/ref
gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader()
This commit is contained in:
commit
52da0ce399
@ -105,14 +105,14 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ShaderEntries UseProgrammableVertexShader(const MaxwellVSConfig& config,
|
ShaderEntries UseProgrammableVertexShader(const MaxwellVSConfig& config,
|
||||||
const ShaderSetup setup) {
|
const ShaderSetup& setup) {
|
||||||
ShaderEntries result;
|
ShaderEntries result;
|
||||||
std::tie(current.vs, result) = vertex_shaders.Get(config, setup);
|
std::tie(current.vs, result) = vertex_shaders.Get(config, setup);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
ShaderEntries UseProgrammableFragmentShader(const MaxwellFSConfig& config,
|
ShaderEntries UseProgrammableFragmentShader(const MaxwellFSConfig& config,
|
||||||
const ShaderSetup setup) {
|
const ShaderSetup& setup) {
|
||||||
ShaderEntries result;
|
ShaderEntries result;
|
||||||
std::tie(current.fs, result) = fragment_shaders.Get(config, setup);
|
std::tie(current.fs, result) = fragment_shaders.Get(config, setup);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user