| 20 | |
| 21 | namespace tgfx { |
| 22 | DefaultGeometryProcessor::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 | |
| 33 | void DefaultGeometryProcessor::onComputeProcessorKey(BytesKey* bytesKey) const { |
| 34 | uint32_t flags = aa == AAType::Coverage ? 1 : 0; |
nothing calls this directly
no outgoing calls
no test coverage detected