mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Change function to take const ref instead of copying whole vector
This commit is contained in:
@@ -96,14 +96,14 @@ void copy(rdctype::array<ShaderConstant> &outvars, const vector<DynShaderConstan
|
||||
}
|
||||
}
|
||||
|
||||
void CheckVertexOutputUses(vector<string> sources, bool &pointSizeUsed, bool &clipDistanceUsed)
|
||||
void CheckVertexOutputUses(const vector<string> &sources, bool &pointSizeUsed, bool &clipDistanceUsed)
|
||||
{
|
||||
pointSizeUsed = false;
|
||||
clipDistanceUsed = false;
|
||||
|
||||
for(size_t i=0; i < sources.size(); i++)
|
||||
{
|
||||
string &s = sources[i];
|
||||
const string &s = sources[i];
|
||||
|
||||
size_t offs = 0;
|
||||
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
|
||||
void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg, ShaderReflection &refl, bool pointSizeUsed, bool clipDistanceUsed);
|
||||
GLuint MakeSeparableShaderProgram(const GLHookSet &gl, GLenum type, std::vector<std::string> sources, vector<string> *includepaths);
|
||||
void CheckVertexOutputUses(std::vector<std::string> sources, bool &pointSizeUsed, bool &clipDistanceUsed);
|
||||
void CheckVertexOutputUses(const std::vector<std::string> &sources, bool &pointSizeUsed, bool &clipDistanceUsed);
|
||||
|
||||
Reference in New Issue
Block a user