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

Method loadShaderVertex

tests/cpp-tests/Source/ShaderTest/ShaderTest.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ShaderNode::loadShaderVertex(std::string_view vert, std::string_view frag)
131{
132 auto program = ProgramManager::getInstance()->loadProgram(vert, frag, VertexLayoutType::Sprite);
133 auto programState = new backend::ProgramState(program);
134 setProgramState(programState);
135 AX_SAFE_RELEASE(programState);
136}
137
138void ShaderNode::update(float dt)
139{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
setProgramStateFunction · 0.85
loadProgramMethod · 0.80

Tested by

no test coverage detected