MCPcopy Create free account
hub / github.com/axmolengine/axmol / createWithProgramState

Method createWithProgramState

core/renderer/Pass.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78Pass* Pass::createWithProgramState(Technique* technique, backend::ProgramState* programState)
79{
80 auto pass = new Pass();
81 if (pass->initWithProgramState(technique, programState))
82 {
83 pass->autorelease();
84 return pass;
85 }
86 AX_SAFE_DELETE(pass);
87 return nullptr;
88}
89
90bool Pass::init(Technique* technique)
91{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithProgramStateMethod · 0.45

Tested by

no test coverage detected