Home
last modified time | relevance | path

Searched refs:VertexWriter (Results 1 – 25 of 39) sorted by relevance

12

/external/skia/src/gpu/
DBufferWriter.h112 struct VertexWriter : public BufferWriter { struct
115 VertexWriter() = default; argument
117 explicit VertexWriter(void* ptr) : BufferWriter(ptr, Mark()) {} in VertexWriter() function
119 VertexWriter(void* ptr, size_t size) : BufferWriter(ptr, size) {} in VertexWriter() function
120 VertexWriter(void* ptr, Mark end) : BufferWriter(ptr, end) {} in VertexWriter() argument
122 VertexWriter(const VertexWriter&) = delete;
123 VertexWriter(VertexWriter&& that) { *this = std::move(that); } in VertexWriter() function
125 VertexWriter& operator=(const VertexWriter&) = delete; argument
126 VertexWriter& operator=(VertexWriter&& that) {
131 VertexWriter makeOffset(size_t offsetInBytes) const { in makeOffset() argument
[all …]
/external/skia/src/gpu/tessellate/
DFixedCountBufferUtils.h14 namespace skgpu { struct VertexWriter; }
66 static void WriteVertexBuffer(VertexWriter, size_t bufferSize);
68 static void WriteIndexBuffer(VertexWriter, size_t bufferSize);
97 static void WriteVertexBuffer(VertexWriter, size_t bufferSize);
99 static void WriteIndexBuffer(VertexWriter, size_t bufferSize);
137 static void WriteVertexBuffer(VertexWriter, size_t bufferSize);
DFixedCountBufferUtils.cpp20 void write_curve_index_buffer_base_index(VertexWriter vertexWriter, in write_curve_index_buffer_base_index()
60 vertexWriter << VertexWriter::Array(indexData.data(), indexData.size()); in write_curve_index_buffer_base_index()
65 void FixedCountCurves::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer()
98 void FixedCountCurves::WriteIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteIndexBuffer()
102 void FixedCountWedges::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer()
112 void FixedCountWedges::WriteIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteIndexBuffer()
124 void FixedCountStrokes::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer()
DPatchWriter.h153 VertexWriter& operator<<(VertexWriter& w, const AttribValue<A, T, Required, Optional>& v) {
306 if (VertexWriter vw = fPatchAllocator.append(fTolerances)) { in writeDeferredStrokePatch()
307 vw << VertexWriter::Array<char>(fDeferredPatch.fData, PatchStride(fAttribs)); in writeDeferredStrokePatch()
491 if (VertexWriter vw = fPatchAllocator.append(fTolerances)) { in writeCircle()
492 vw << VertexWriter::Repeat<4>(p); // p0,p1,p2,p3 = p -> 4 copies in writeCircle()
498 AI void emitPatchAttribs(VertexWriter vertexWriter, in emitPatchAttribs()
506 AI VertexWriter appendPatch() { in appendPatch()
521 if (VertexWriter vw = this->appendPatch()) { in writePatch()
/external/skia/src/gpu/graphite/render/
DVerticesRenderStep.cpp155 << VertexWriter::If(fHasColor, colors ? colors[state.f0] in writeVertices()
157 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f0] in writeVertices()
161 << VertexWriter::If(fHasColor, colors ? colors[state.f1] in writeVertices()
163 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f1] in writeVertices()
167 << VertexWriter::If(fHasColor, colors ? colors[state.f2] in writeVertices()
169 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f2] in writeVertices()
DDynamicInstancesPatchAllocator.h41 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()
/external/skia/src/gpu/ganesh/
DGrMeshDrawTarget.cpp24 skgpu::VertexWriter GrMeshDrawTarget::makeVertexWriter( in makeVertexWriter()
27 return make_writer<skgpu::VertexWriter>(p, vertexCount, vertexSize); in makeVertexWriter()
36 skgpu::VertexWriter GrMeshDrawTarget::makeVertexWriterAtLeast( in makeVertexWriterAtLeast()
41 return make_writer<skgpu::VertexWriter>(p, *actualVertexCount, vertexSize); in makeVertexWriterAtLeast()
DGrEagerVertexAllocator.h33 skgpu::VertexWriter lockWriter(size_t stride, int eagerCount) { in lockWriter()
35 return p ? skgpu::VertexWriter{p, stride * eagerCount} : skgpu::VertexWriter{}; in lockWriter()
DGrMeshDrawTarget.h22 struct VertexWriter;
107 skgpu::VertexWriter makeVertexWriter(size_t vertexSize, int vertexCount,
110 skgpu::VertexWriter makeVertexWriterAtLeast(size_t vertexSize, int minVertexCount,
DGrVertexChunkArray.h58 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count) { in appendVertices()
90 skgpu::VertexWriter fCurrChunkVertexWriter;
/external/skia/src/gpu/ganesh/geometry/
DGrTriangulator.h93 skgpu::VertexWriter polysToTriangles(Poly* polys,
95 skgpu::VertexWriter data) const;
141 skgpu::VertexWriter emitMonotonePoly(const MonotonePoly*, skgpu::VertexWriter data) const;
142 skgpu::VertexWriter emitTriangle(Vertex* prev, Vertex* curr, Vertex* next, int winding,
143 skgpu::VertexWriter data) const;
144 skgpu::VertexWriter emitPoly(const Poly*, skgpu::VertexWriter data) const;
DGrQuad.h70 void writeVertex(int cornerIdx, skgpu::VertexWriter& w) const { in writeVertex()
172 template<> struct skgpu::VertexWriter::is_quad<GrQuad> : std::true_type {};
DGrTriangulator.cpp84 static inline skgpu::VertexWriter emit_vertex(Vertex* v, in emit_vertex()
86 skgpu::VertexWriter data) { in emit_vertex()
96 static skgpu::VertexWriter emit_triangle(Vertex* v0, Vertex* v1, Vertex* v2, in emit_triangle()
97 bool emitCoverage, skgpu::VertexWriter data) { in emit_triangle()
316 skgpu::VertexWriter GrTriangulator::emitMonotonePoly(const MonotonePoly* monotonePoly, in emitMonotonePoly()
317 skgpu::VertexWriter data) const { in emitMonotonePoly()
364 skgpu::VertexWriter GrTriangulator::emitTriangle( in emitTriangle()
365 Vertex* prev, Vertex* curr, Vertex* next, int winding, skgpu::VertexWriter data) const { in emitTriangle()
437 skgpu::VertexWriter GrTriangulator::emitPoly(const Poly* poly, skgpu::VertexWriter data) const { in emitPoly()
1567 skgpu::VertexWriter GrTriangulator::polysToTriangles(Poly* polys, in polysToTriangles()
[all …]
/external/skia/src/gpu/graphite/
DBufferManager.h40 std::tuple<VertexWriter, BindBufferInfo> getVertexWriter(size_t requiredBytes);
123 VertexWriter getVertexWriter(size_t size, BindBufferInfo* binding);
126 VertexWriter getIndexWriter(size_t size, BindBufferInfo* binding);
DDrawWriter.h263 VertexWriter fNextWriter; // writing to the target buffer binding
294 VertexWriter append(unsigned int count) { in append()
349 VertexWriter append(const V& vertexCount, unsigned int instanceCount) { in append()
350 VertexWriter w = this->Appender::append(instanceCount); in append()
DBufferManager.cpp106 std::tuple<VertexWriter, BindBufferInfo> DrawBufferManager::getVertexWriter(size_t requiredBytes) { in getVertexWriter()
117 return {VertexWriter(ptr, requiredBytes), bindInfo}; in getVertexWriter()
330 VertexWriter StaticBufferManager::getVertexWriter(size_t size, BindBufferInfo* binding) { in getVertexWriter()
332 return VertexWriter{data, size}; in getVertexWriter()
335 VertexWriter StaticBufferManager::getIndexWriter(size_t size, BindBufferInfo* binding) { in getIndexWriter()
337 return VertexWriter{data, size}; in getIndexWriter()
/external/skia/src/gpu/ganesh/ops/
DQuadPerEdgeAA.h27 struct VertexWriter;
157 typedef void (*WriteQuadProc)(VertexWriter* vertices, const VertexSpec& spec,
165 VertexWriter fVertexWriter;
DQuadPerEdgeAA.cpp39 void write_quad_generic(VertexWriter* vb, in write_quad_generic()
47 static constexpr auto If = VertexWriter::If<float>; in write_quad_generic()
90 void write_2d_color(VertexWriter* vb, in write_2d_color()
122 void write_2d_uv(VertexWriter* vb, in write_2d_uv()
149 void write_2d_color_uv(VertexWriter* vb, in write_2d_color_uv()
181 void write_2d_cov_uv(VertexWriter* vb, in write_2d_cov_uv()
215 void write_2d_uv_strict(VertexWriter* vb, in write_2d_uv_strict()
243 void write_2d_color_uv_strict(VertexWriter* vb, in write_2d_color_uv_strict()
276 void write_2d_cov_uv_strict(VertexWriter* vb, in write_2d_cov_uv_strict()
DAtlasInstancedHelper.cpp30 void AtlasInstancedHelper::writeInstanceData(VertexWriter* instanceWriter, in writeInstanceData()
42 VertexWriter::If(fShaderFlags & ShaderFlags::kCheckBounds, in writeInstanceData()
DStrokeRectOp.cpp564 void generateAAStrokeRectGeometry(VertexWriter& vertices,
644 VertexWriter vertices{ helper.vertices() }; in onPrepareDraws()
796 void AAStrokeRectOp::generateAAStrokeRectGeometry(VertexWriter& vertices, in generateAAStrokeRectGeometry()
816 return VertexWriter::TriFanFromRect(r.makeInset(dx, dy)); in generateAAStrokeRectGeometry()
822 return VertexWriter::If(!tweakAlphaForCoverage, coverage); in generateAAStrokeRectGeometry()
918 vertices.writeQuad(VertexWriter::TriFanFromRect(interiorAABoundary), in generateAAStrokeRectGeometry()
925 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
930 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
DRegionOp.cpp127 VertexWriter vertices{helper.vertices()}; in onPrepareDraws()
138 vertices.writeQuad(VertexWriter::TriStripFromRect(rect), color); in onPrepareDraws()
DDrawAtlasPathOp.cpp199 if (VertexWriter instanceWriter = flushState->makeVertexWriter( in onPrepare()
204 << VertexWriter::If(fUsesLocalCoords, in onPrepare()
DAtlasInstancedHelper.h73 void writeInstanceData(VertexWriter* instanceWriter, const Instance*) const;
/external/skia/tools/gpu/
DTestOps.cpp204 skgpu::VertexWriter writer{helper.vertices()}; in onPrepareDraws()
205 auto pos = skgpu::VertexWriter::TriStripFromRect(fDrawRect); in onPrepareDraws()
206 auto local = skgpu::VertexWriter::TriStripFromRect(fLocalRect); in onPrepareDraws()
/external/skia/src/gpu/ganesh/tessellate/
DVertexChunkPatchAllocator.h32 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()

12