| 322 | } |
| 323 | |
| 324 | static void AssertShaderType(Shader* shader, const char* shaderName, const ShaderType type, const char* typeName) |
| 325 | { |
| 326 | if (shader != nullptr) |
| 327 | { |
| 328 | if (shader->GetType() != type) |
| 329 | { |
| 330 | throw std::invalid_argument( |
| 331 | "cannot create shader program with '" + std::string(shaderName) + |
| 332 | "' not being of type <LLGL::ShaderType::" + std::string(typeName) + ">" |
| 333 | ); |
| 334 | } |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | void RenderSystem::AssertCreateShaderProgram(const ShaderProgramDescriptor& desc) |
| 339 | { |
no test coverage detected