MCPcopy Create free account
hub / github.com/Tencent/tgfx / ProgramInfo

Method ProgramInfo

src/gpu/ProgramInfo.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25namespace tgfx {
26ProgramInfo::ProgramInfo(RenderTarget* renderTarget, GeometryProcessor* geometryProcessor,
27 std::vector<FragmentProcessor*> fragmentProcessors,
28 size_t numColorProcessors, XferProcessor* xferProcessor,
29 BlendMode blendMode)
30 : renderTarget(renderTarget), geometryProcessor(std::move(geometryProcessor)),
31 fragmentProcessors(std::move(fragmentProcessors)), numColorProcessors(numColorProcessors),
32 xferProcessor(std::move(xferProcessor)), blendMode(blendMode) {
33 updateProcessorIndices();
34}
35
36void ProgramInfo::updateProcessorIndices() {
37 int index = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected