Lines Matching defs:GrVertexWriter
25 struct GrVertexWriter { struct
28 GrVertexWriter() = default; argument
29 GrVertexWriter(void* ptr) : fPtr(ptr) {} in GrVertexWriter() argument
31 GrVertexWriter(GrVertexWriter&& that) { *this = std::move(that); } in GrVertexWriter() function
33 GrVertexWriter& operator=(const GrVertexWriter&) = delete; argument
43 GrVertexWriter makeOffset(size_t offsetInBytes) const { in makeOffset() argument
53 friend struct GrVertexWriter; argument
55 bool fCondition;
56 T fValue;
60 static Conditional<T> If(bool condition, const T& value) { in If()
65 struct Skip {};
68 void write(const T& val, const Args&... remainder) { in write()
80 void write(const T(&val)[N], const Args&... remainder) { in write()
89 void write(const GrVertexColor& color, const Args&... remainder) { in write()
100 void write(const Conditional<T>& val, const Args&... remainder) { in write()
108 void write(const Skip<T>& val, const Args&... remainder) { in write()
114 void write(const Sk4f& vector, const Args&... remainder) { in write()
122 void writeArray(const T* array, int count) { in writeArray()
130 void fill(const T& val, int repeatCount) { in fill()
136 void writeRaw(const void* data, size_t size) { in writeRaw()
141 void write() {} in write()
155 struct TriStrip { T l, t, r, b; };
157 static TriStrip<float> TriStripFromRect(const SkRect& r) { in TriStripFromRect()
161 static TriStrip<uint16_t> TriStripFromUVs(const std::array<uint16_t, 4>& rect) { in TriStripFromUVs()
166 struct TriFan { T l, t, r, b; };
168 static TriFan<float> TriFanFromRect(const SkRect& r) { in TriFanFromRect()
173 void writeQuad(const Args&... remainder) { in writeQuad()
182 void writeQuadVert(const T& val, const Args&... remainder) { in writeQuadVert()
188 void writeQuadVert() {} in writeQuadVert()
191 void writeQuadValue(const T& val) { in writeQuadValue()
196 void writeQuadValue(const TriStrip<T>& r) { in writeQuadValue()
206 void writeQuadValue(const TriFan<T>& r) { in writeQuadValue()
216 void writeQuadValue(const GrQuad& q) { in writeQuadValue()