refrence parameter by const refrence, linked tothe original GLSL resources, fixed inlude

This commit is contained in:
aliPMPAINT 2021-02-27 11:22:49 +03:30
parent f60e71dd0b
commit 3cad95c2b6
2 changed files with 7 additions and 5 deletions

View file

@ -9,7 +9,7 @@ Shader::compile_sources(const std::vector<std::string>& sources,
const std::vector<std::string>& files,
const std::string& entryPoint,
std::vector<std::pair<std::string,std::string>> definitions,
const TBuiltInResource resources) {
const TBuiltInResource& resources) {
// Initialize glslang library.
glslang::InitializeProcess();
@ -90,7 +90,7 @@ std::vector<uint32_t>
Shader::compile_source(const std::string& source,
const std::string& entryPoint,
std::vector<std::pair<std::string,std::string>> definitions,
const TBuiltInResource resource) {
const TBuiltInResource& resource) {
return compile_sources({source}, std::vector<std::string>({}), entryPoint, definitions, resource);
}