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

Method DefaultGeometryProcessor

src/gpu/processors/DefaultGeometryProcessor.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21namespace tgfx {
22DefaultGeometryProcessor::DefaultGeometryProcessor(Color color, int width, int height, AAType aa,
23 const Matrix& viewMatrix, const Matrix& uvMatrix)
24 : GeometryProcessor(ClassID()), color(color), width(width), height(height), aa(aa),
25 viewMatrix(viewMatrix), uvMatrix(uvMatrix) {
26 position = {"aPosition", VertexFormat::Float2};
27 if (aa == AAType::Coverage) {
28 coverage = {"inCoverage", VertexFormat::Float};
29 }
30 setVertexAttributes(&position, 2);
31}
32
33void DefaultGeometryProcessor::onComputeProcessorKey(BytesKey* bytesKey) const {
34 uint32_t flags = aa == AAType::Coverage ? 1 : 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected