#include <QuadPerEdgeAA.h>
Definition at line 54 of file QuadPerEdgeAA.h.
◆ VertexSpec() [1/2]
skgpu::ganesh::QuadPerEdgeAA::VertexSpec::VertexSpec |
( |
| ) |
|
|
inline |
Definition at line 56 of file QuadPerEdgeAA.h.
57 : fDeviceQuadType(0)
58 , fLocalQuadType(0)
59 , fIndexBufferOption(0)
60 , fHasLocalCoords(false)
61 , fColorType(0)
62 , fHasSubset(false)
63 , fUsesCoverageAA(false)
64 , fCompatibleWithCoverageAsAlpha(false)
65 , fRequiresGeometrySubset(false) {}
◆ VertexSpec() [2/2]
Definition at line 67 of file QuadPerEdgeAA.h.
79 , fColorType(
static_cast<unsigned>(
colorType))
80 , fHasSubset(static_cast<unsigned>(subset))
82 , fCompatibleWithCoverageAsAlpha(coverageAsAlpha)
bool hasLocalCoords() const
IndexBufferOption indexBufferOption() const
GrQuad::Type deviceQuadType() const
ColorType colorType() const
GrQuad::Type localQuadType() const
◆ colorType()
ColorType skgpu::ganesh::QuadPerEdgeAA::VertexSpec::colorType |
( |
| ) |
const |
|
inline |
◆ compatibleWithCoverageAsAlpha()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::compatibleWithCoverageAsAlpha |
( |
| ) |
const |
|
inline |
Definition at line 96 of file QuadPerEdgeAA.h.
96{ return fCompatibleWithCoverageAsAlpha; }
◆ coverageMode()
CoverageMode skgpu::ganesh::QuadPerEdgeAA::VertexSpec::coverageMode |
( |
| ) |
const |
Definition at line 540 of file QuadPerEdgeAA.cpp.
540 {
544
545
546
548 } else {
550 }
551 } else {
553 }
554}
bool hasVertexColors() const
bool usesCoverageAA() const
bool requiresGeometrySubset() const
bool compatibleWithCoverageAsAlpha() const
◆ deviceDimensionality()
int skgpu::ganesh::QuadPerEdgeAA::VertexSpec::deviceDimensionality |
( |
| ) |
const |
◆ deviceQuadType()
GrQuad::Type skgpu::ganesh::QuadPerEdgeAA::VertexSpec::deviceQuadType |
( |
| ) |
const |
|
inline |
◆ hasLocalCoords()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::hasLocalCoords |
( |
| ) |
const |
|
inline |
◆ hasSubset()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::hasSubset |
( |
| ) |
const |
|
inline |
◆ hasVertexColors()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::hasVertexColors |
( |
| ) |
const |
|
inline |
◆ indexBufferOption()
IndexBufferOption skgpu::ganesh::QuadPerEdgeAA::VertexSpec::indexBufferOption |
( |
| ) |
const |
|
inline |
◆ localDimensionality()
int skgpu::ganesh::QuadPerEdgeAA::VertexSpec::localDimensionality |
( |
| ) |
const |
◆ localQuadType()
GrQuad::Type skgpu::ganesh::QuadPerEdgeAA::VertexSpec::localQuadType |
( |
| ) |
const |
|
inline |
◆ needsIndexBuffer()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::needsIndexBuffer |
( |
| ) |
const |
|
inline |
◆ primitiveType()
GrPrimitiveType skgpu::ganesh::QuadPerEdgeAA::VertexSpec::primitiveType |
( |
| ) |
const |
|
inline |
Definition at line 112 of file QuadPerEdgeAA.h.
112 {
114 case IndexBufferOption::kPictureFramed:
116 case IndexBufferOption::kIndexedRects:
118 case IndexBufferOption::kTriStrips:
120 }
121
123 }
◆ requiresGeometrySubset()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::requiresGeometrySubset |
( |
| ) |
const |
|
inline |
◆ usesCoverageAA()
bool skgpu::ganesh::QuadPerEdgeAA::VertexSpec::usesCoverageAA |
( |
| ) |
const |
|
inline |
◆ vertexSize()
size_t skgpu::ganesh::QuadPerEdgeAA::VertexSpec::vertexSize |
( |
| ) |
const |
Definition at line 557 of file QuadPerEdgeAA.cpp.
557 {
560
562
564 if (needsPerspective) {
566 } else {
569 }
570 } else {
571 if (needsPerspective) {
573 } else {
575 }
576 }
577
580 }
581
583
584 if (ColorType::kByte == this->
colorType()) {
586 }
else if (ColorType::kFloat == this->
colorType()) {
588 }
589
592 }
593
595}
static constexpr size_t GrVertexAttribTypeSize(GrVertexAttribType type)
@ kFloat2_GrVertexAttribType
@ kUByte4_norm_GrVertexAttribType
@ kFloat3_GrVertexAttribType
@ kFloat_GrVertexAttribType
@ kFloat4_GrVertexAttribType
int deviceDimensionality() const
int localDimensionality() const
CoverageMode coverageMode() const
◆ verticesPerQuad()
int skgpu::ganesh::QuadPerEdgeAA::VertexSpec::verticesPerQuad |
( |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following files: