Skip to content
Snippets Groups Projects
Verified Commit acf323cd authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Adjust use of dictionary type in compiler

parent 1f83e758
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ namespace vkcv::shader {
/**
* A map containing macros for shader compilation.
*/
std::unordered_map<std::string, std::string> m_defines;
Dictionary<std::string, std::string> m_defines;
public:
/**
......@@ -70,7 +70,7 @@ namespace vkcv::shader {
*/
bool compileSourceWithHeaders(ShaderStage shaderStage,
const std::string& shaderSource,
const std::unordered_map<std::filesystem::path, std::string>& shaderHeaders,
const Dictionary<std::filesystem::path, std::string>& shaderHeaders,
const ShaderCompiledFunction& compiled);
/**
......@@ -102,7 +102,7 @@ namespace vkcv::shader {
* @param[in] update Flag to update shaders during runtime
*/
void compileProgram(ShaderProgram& program,
const std::unordered_map<ShaderStage, const std::filesystem::path>& stages,
const Dictionary<ShaderStage, const std::filesystem::path>& stages,
const ShaderProgramCompiledFunction& compiled,
const std::filesystem::path& includePath = "",
bool update = false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment