MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / AssertShaderType

Function AssertShaderType

deps/LLGL/sources/Renderer/RenderSystem.cpp:324–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static 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
338void RenderSystem::AssertCreateShaderProgram(const ShaderProgramDescriptor& desc)
339{

Callers 1

Calls 1

GetTypeMethod · 0.80

Tested by

no test coverage detected