MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / CreateProgram

Method CreateProgram

ZEngine/src/Shader.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void Shader::CreateProgram() {
37 m_compiler = std::make_unique<Compilers::ShaderCompiler>(m_filename);
38 const auto compile_result = m_compiler->Compile();
39
40 if (std::get<0>(compile_result) == ShaderOperationResult::SUCCESS) {
41 m_program = std::get<1>(compile_result);
42 }
43 }
44
45 void Shader::Bind() const {
46 if (!IsActive()) {

Callers 1

RunMethod · 0.80

Calls 1

CompileMethod · 0.80

Tested by

no test coverage detected