MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / compileShaderFile

Function compileShaderFile

shared/UtilsVulkan.cpp:228–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228size_t compileShaderFile(const char* file, ShaderModule& shaderModule)
229{
230 if (auto shaderSource = readShaderFile(file); !shaderSource.empty())
231 return compileShader(glslangShaderStageFromFileName(file), shaderSource.c_str(), shaderModule);
232
233 return 0;
234}
235
236VkResult createShaderModule(VkDevice device, ShaderModule* shader, const char* fileName)
237{

Callers 2

testShaderCompilationFunction · 0.85
createShaderModuleFunction · 0.85

Calls 3

readShaderFileFunction · 0.85
compileShaderFunction · 0.85

Tested by

no test coverage detected