Lines Matching refs:GrQuad
18 , fDeviceType(GrQuad::Type::kAxisAligned) in GrQuadBuffer()
19 , fLocalType(GrQuad::Type::kAxisAligned) { in GrQuadBuffer()
30 , fDeviceType(GrQuad::Type::kAxisAligned)
31 , fLocalType(GrQuad::Type::kAxisAligned) {
41 GrQuad::Type deviceQuadType() const { return fDeviceType; } in deviceQuadType()
45 GrQuad::Type localQuadType() const { return fLocalType; } in localQuadType()
52 void append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad = nullptr);
77 GrQuad* deviceQuad() { this->validate(); return &fDeviceQuad; } in deviceQuad()
81 GrQuad* localQuad() { in localQuad()
93 GrQuad fDeviceQuad;
94 GrQuad fLocalQuad;
175 GrQuad::Type fDeviceType; // Most general type of all entries
176 GrQuad::Type fLocalType;
178 inline int entrySize(GrQuad::Type deviceType, const GrQuad::Type* localType) const { in entrySize()
180 size += (deviceType == GrQuad::Type::kPerspective ? k3DQuadFloats in entrySize()
183 size += (*localType == GrQuad::Type::kPerspective ? k3DQuadFloats in entrySize()
190 GrQuad::Type localType = static_cast<GrQuad::Type>(header->fLocalType); in entrySize()
191 return this->entrySize(static_cast<GrQuad::Type>(header->fDeviceType), &localType); in entrySize()
193 return this->entrySize(static_cast<GrQuad::Type>(header->fDeviceType), nullptr); in entrySize()
221 float* packQuad(const GrQuad& quad, float* coords);
222 const float* unpackQuad(GrQuad::Type type, const float* coords, GrQuad* quad) const;
234 float* GrQuadBuffer<T>::packQuad(const GrQuad& quad, float* coords) { in packQuad()
248 const float* GrQuadBuffer<T>::unpackQuad(GrQuad::Type type, const float* coords, GrQuad* quad) cons… in unpackQuad()
250 if (type == GrQuad::Type::kPerspective) { in unpackQuad()
265 void GrQuadBuffer<T>::append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad) { in append()
266 GrQuad::Type localType = localQuad ? localQuad->quadType() : GrQuad::Type::kAxisAligned; in append()
276 : GrQuad::Type::kAxisAligned); in append()
343 coords = fBuffer->unpackQuad(static_cast<GrQuad::Type>(h->fDeviceType), coords, &fDeviceQuad); in next()
345 coords = fBuffer->unpackQuad(static_cast<GrQuad::Type>(h->fLocalType), coords, &fLocalQuad); in next()