Home
last modified time | relevance | path

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

12

/third_party/skia/src/gpu/
DBufferWriter.h45 struct VertexWriter : public BufferWriter { struct
48 VertexWriter() = default; argument
49 VertexWriter(void* ptr) : BufferWriter(ptr) {} in VertexWriter() function
50 VertexWriter(const VertexWriter&) = delete;
51 VertexWriter(VertexWriter&& that) { *this = std::move(that); } in VertexWriter() argument
53 VertexWriter& operator=(const VertexWriter&) = delete; argument
54 VertexWriter& operator=(VertexWriter&& that) {
59 bool operator==(const VertexWriter& that) const { return fPtr == that.fPtr; }
66 VertexWriter makeOffset(ptrdiff_t offsetInBytes) const { in makeOffset() argument
122 void writeVertex(int cornerIdx, VertexWriter& w) const { in writeVertex() argument
[all …]
DGrColor.h115 friend skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter&, const T&);
122 SK_MAYBE_UNUSED inline skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter& w,
DGrVertexChunkArray.h53 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count) { in appendVertices()
66 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertex() { return this->appendVertices(1); } in appendVertex()
87 skgpu::VertexWriter fCurrChunkVertexWriter;
DGrResourceProvider.h35 namespace skgpu { struct VertexWriter; }
197 using InitializeBufferFn = void(*)(skgpu::VertexWriter, size_t bufferSize);
/third_party/skia/src/gpu/tessellate/
DPatchWriter.h66 operator VertexWriter&() { return fVertexWriter; }
68 VertexWriter fVertexWriter;
79 fVertexWriter << VertexWriter::kIEEE_32_infinity; // p3.y=Inf indicates a conic. in ~ConicPatch()
83 operator VertexWriter&() { return fVertexWriter; }
85 VertexWriter fVertexWriter;
97 fVertexWriter.fill(VertexWriter::kIEEE_32_infinity, 2); in ~TrianglePatch()
101 operator VertexWriter&() { return fVertexWriter; }
103 VertexWriter fVertexWriter;
125 VertexWriter appendPatch() { in appendPatch()
126 VertexWriter vertexWriter = fChunker.appendVertex(); in appendPatch()
[all …]
DPathCurveTessellator.h43 static void WriteFixedVertexBuffer(VertexWriter, size_t bufferSize);
51 static void WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedIndexBuffer()
55 static void WriteFixedIndexBufferBaseIndex(VertexWriter, size_t bufferSize, uint16_t baseIndex);
DPathWedgeTessellator.h45 static void WriteFixedVertexBuffer(VertexWriter, size_t bufferSize);
54 static void WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize);
DPathCurveTessellator.cpp134 void PathCurveTessellator::WriteFixedVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedVertexBuffer()
139 SkDEBUGCODE(VertexWriter end = vertexWriter.makeOffset(vertexCount * sizeof(SkPoint));) in WriteFixedVertexBuffer()
168 void PathCurveTessellator::WriteFixedIndexBufferBaseIndex(VertexWriter vertexWriter, in WriteFixedIndexBufferBaseIndex()
DStrokeFixedCountTessellator.cpp125 if (VertexWriter writer = fChunkBuilder.appendVertex()) { in writeCircle()
178 } else if (VertexWriter writer = fChunkBuilder.appendVertex()) { in writeStroke()
186 SK_ALWAYS_INLINE void writeDynamicAttribs(VertexWriter* writer, in writeDynamicAttribs()
429 void StrokeFixedCountTessellator::InitializeVertexIDFallbackBuffer(VertexWriter vertexWriter, in InitializeVertexIDFallbackBuffer()
DStrokeFixedCountTessellator.h40 static void InitializeVertexIDFallbackBuffer(VertexWriter vertexWriter, size_t bufferSize);
DPathWedgeTessellator.cpp250 void PathWedgeTessellator::WriteFixedVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedVertexBuffer()
261 void PathWedgeTessellator::WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedIndexBuffer()
/third_party/skia/experimental/graphite/src/
DDrawBufferManager.cpp36 std::tuple<VertexWriter, BindBufferInfo> DrawBufferManager::getVertexWriter(size_t requiredBytes) { in getVertexWriter()
41 return {VertexWriter(nullptr), bindInfo}; in getVertexWriter()
55 return {VertexWriter(), BindBufferInfo()}; in getVertexWriter()
62 return {VertexWriter(fCurrentVertexBuffer->map()), bindInfo}; in getVertexWriter()
DRenderer.h21 struct VertexWriter;
34 virtual void writeVertices(VertexWriter, IndexWriter, const Shape&) const = 0;
DDrawList.h30 struct VertexWriter;
221 void writeVertices(VertexWriter, IndexWriter, int renderStep) const;
DDrawBufferManager.h28 std::tuple<VertexWriter, BindBufferInfo> getVertexWriter(size_t requiredBytes);
/third_party/skia/src/gpu/tessellate/shaders/
DGrTessellationShader.h46 static void WriteConicPatch(const SkPoint pts[3], float w, skgpu::VertexWriter* writer) { in WriteConicPatch()
50 *writer << w << skgpu::VertexWriter::kIEEE_32_infinity; in WriteConicPatch()
53 skgpu::VertexWriter writer(patch); in WriteConicPatch()
/third_party/skia/experimental/graphite/src/render/
DStencilAndFillPathRenderer.cpp75 void writeVertices(VertexWriter vertexWriter, in writeVertices()
78 vertexWriter.writeQuad(VertexWriter::TriStripFromRect(shape.bounds().asSkRect())); in writeVertices()
/third_party/skia/src/gpu/geometry/
DGrPathUtils.h139 inline void writeLineAsCubic(SkPoint startPt, SkPoint endPt, skgpu::VertexWriter* writer) { in writeLineAsCubic()
148 inline void writeQuadAsCubic(const SkPoint p[3], skgpu::VertexWriter* writer) { in writeQuadAsCubic()
157 skgpu::VertexWriter writer(out); in convertQuadToCubic()
DGrQuad.h70 void writeVertex(int cornerIdx, skgpu::VertexWriter& w) const { in writeVertex()
172 template<> struct skgpu::VertexWriter::is_quad<GrQuad> : std::true_type {};
/third_party/skia/src/gpu/ops/
DQuadPerEdgeAA.h26 struct VertexWriter;
156 typedef void (*WriteQuadProc)(VertexWriter* vertices, const VertexSpec& spec,
164 VertexWriter fVertexWriter;
DAtlasInstancedHelper.cpp25 void AtlasInstancedHelper::writeInstanceData(VertexWriter* instanceWriter, in writeInstanceData()
37 VertexWriter::If(fShaderFlags & ShaderFlags::kCheckBounds, in writeInstanceData()
DQuadPerEdgeAA.cpp37 void write_quad_generic(VertexWriter* vb, in write_quad_generic()
45 static constexpr auto If = VertexWriter::If<float>; in write_quad_generic()
89 void write_2d_color(VertexWriter* vb, in write_2d_color()
121 void write_2d_uv(VertexWriter* vb, in write_2d_uv()
148 void write_2d_color_uv(VertexWriter* vb, in write_2d_color_uv()
180 void write_2d_cov_uv(VertexWriter* vb, in write_2d_cov_uv()
214 void write_2d_uv_strict(VertexWriter* vb, in write_2d_uv_strict()
242 void write_2d_color_uv_strict(VertexWriter* vb, in write_2d_color_uv_strict()
275 void write_2d_cov_uv_strict(VertexWriter* vb, in write_2d_cov_uv_strict()
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()
DDrawAtlasPathOp.cpp194 if (VertexWriter instanceWriter = flushState->makeVertexSpace( in onPrepare()
199 << VertexWriter::If(fUsesLocalCoords, in onPrepare()
/third_party/skia/tools/gpu/
DTestOps.cpp203 skgpu::VertexWriter writer{helper.vertices()}; in onPrepareDraws()
204 auto pos = skgpu::VertexWriter::TriStripFromRect(fDrawRect); in onPrepareDraws()
205 auto local = skgpu::VertexWriter::TriStripFromRect(fLocalRect); in onPrepareDraws()

12