MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / MakeDefinesString

Function MakeDefinesString

Shadows/SampleFramework11/ShaderCompilation.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83static const wstring cacheDir = baseCacheDir + cacheSubDir;
84
85static string MakeDefinesString(const D3D_SHADER_MACRO* defines)
86{
87 string definesString;
88 while(defines && defines->Name != nullptr && defines != nullptr)
89 {
90 if(definesString.length() > 0)
91 definesString += "|";
92 definesString += defines->Name;
93 definesString += "=";
94 definesString += defines->Definition;
95 ++defines;
96 }
97
98 return definesString;
99}
100
101static wstring MakeShaderCacheName(const std::string& shaderCode, const char* functionName,
102 const char* profile, const D3D_SHADER_MACRO* defines)

Callers 2

MakeShaderCacheNameFunction · 0.85
CompileShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected