| 226 | } |
| 227 | |
| 228 | size_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 | |
| 236 | VkResult createShaderModule(VkDevice device, ShaderModule* shader, const char* fileName) |
| 237 | { |
no test coverage detected