Home
last modified time | relevance | path

Searched refs:GrPrimitiveType (Results 1 – 25 of 124) sorted by relevance

12345

/third_party/skia/src/gpu/ops/
DDrawVerticesOp.cpp205 GrPrimitiveType,
244 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
246 return GrPrimitiveType::kTriangles == fPrimitiveType || in combinablePrimitive()
247 GrPrimitiveType::kLines == fPrimitiveType || in combinablePrimitive()
248 GrPrimitiveType::kPoints == fPrimitiveType; in combinablePrimitive()
287 GrPrimitiveType fPrimitiveType;
304 GrPrimitiveType primitiveType, in DrawVerticesOpImpl()
331 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in DrawVerticesOpImpl()
574 static GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
577 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
[all …]
DDefaultPathRenderer.cpp61 PathGeoBuilder(GrPrimitiveType primitiveType, in PathGeoBuilder()
207 return GrPrimitiveType::kLines == fPrimitiveType || in isIndexed()
208 GrPrimitiveType::kTriangles == fPrimitiveType; in isIndexed()
211 return GrPrimitiveType::kLines == fPrimitiveType || in isHairline()
212 GrPrimitiveType::kLineStrip == fPrimitiveType; in isHairline()
216 case GrPrimitiveType::kLines: in indexScale()
218 case GrPrimitiveType::kTriangles: in indexScale()
365 GrPrimitiveType fPrimitiveType;
448 GrPrimitiveType primType() const { in primType()
456 return isIndexed ? GrPrimitiveType::kLines : GrPrimitiveType::kLineStrip; in primType()
[all …]
DQuadPerEdgeAA.h106 GrPrimitiveType primitiveType() const { in primitiveType()
108 case IndexBufferOption::kPictureFramed: return GrPrimitiveType::kTriangles; in primitiveType()
109 case IndexBufferOption::kIndexedRects: return GrPrimitiveType::kTriangles; in primitiveType()
110 case IndexBufferOption::kTriStrips: return GrPrimitiveType::kTriangleStrip; in primitiveType()
DGrMeshDrawOp.h55 PatternHelper(GrMeshDrawTarget*, GrPrimitiveType, size_t vertexStride,
69 void init(GrMeshDrawTarget*, GrPrimitiveType, size_t vertexStride,
76 GrPrimitiveType fPrimitiveType;
DGrMeshDrawOp.cpp68 GrMeshDrawOp::PatternHelper::PatternHelper(GrMeshDrawTarget* target, GrPrimitiveType primitiveType, in PatternHelper()
76 void GrMeshDrawOp::PatternHelper::init(GrMeshDrawTarget* target, GrPrimitiveType primitiveType, in init()
125 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(indexBuffer), in QuadHelper()
/third_party/flutter/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp26 const SkVertices::Bone bones[], int boneCount, GrPrimitiveType, GrAAType,
73 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
75 return GrPrimitiveType::kTriangles == fPrimitiveType || in combinablePrimitive()
76 GrPrimitiveType::kLines == fPrimitiveType || in combinablePrimitive()
77 GrPrimitiveType::kPoints == fPrimitiveType; in combinablePrimitive()
125 GrPrimitiveType fPrimitiveType;
137 int boneCount, GrPrimitiveType primitiveType, GrAAType aaType, in DrawVerticesOp()
182 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in DrawVerticesOp()
580 GrPrimitiveType* overridePrimType) { in Make()
582 GrPrimitiveType primType = overridePrimType ? *overridePrimType in Make()
[all …]
DGrDefaultPathRenderer.cpp69 PathGeoBuilder(GrPrimitiveType primitiveType, GrMeshDrawOp::Target* target, in PathGeoBuilder()
201 return GrPrimitiveType::kLines == fPrimitiveType || in isIndexed()
202 GrPrimitiveType::kTriangles == fPrimitiveType; in isIndexed()
205 return GrPrimitiveType::kLines == fPrimitiveType || in isHairline()
206 GrPrimitiveType::kLineStrip == fPrimitiveType; in isHairline()
210 case GrPrimitiveType::kLines: in indexScale()
212 case GrPrimitiveType::kTriangles: in indexScale()
313 GrPrimitiveType fPrimitiveType;
427 GrPrimitiveType primitiveType; in onPrepareDraws()
429 primitiveType = isIndexed ? GrPrimitiveType::kLines : GrPrimitiveType::kLineStrip; in onPrepareDraws()
[all …]
DGrMeshDrawOp.cpp19 GrMeshDrawOp::PatternHelper::PatternHelper(Target* target, GrPrimitiveType primitiveType, in PatternHelper()
27 void GrMeshDrawOp::PatternHelper::init(Target* target, GrPrimitiveType primitiveType, in init()
71 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(quadIndexBuffer), in QuadHelper()
DGrMeshDrawOp.h37 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride,
50 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer,
138 GrMesh* allocMesh(GrPrimitiveType primitiveType) { in allocMesh()
/third_party/skia/src/gpu/
DGrProgramInfo.h25 GrPrimitiveType primitiveType, in GrProgramInfo()
50 SkASSERT((GrPrimitiveType::kPatches == fPrimitiveType) == in GrProgramInfo()
68 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
70 SkASSERT(GrPrimitiveType::kPatches == fPrimitiveType); in tessellationPatchVertexCount()
112 GrPrimitiveType fPrimitiveType;
/third_party/flutter/skia/src/gpu/
DGrMesh.h25 GrMesh(GrPrimitiveType primitiveType = GrPrimitiveType::kTriangles)
30 void setPrimitiveType(GrPrimitiveType type) { fPrimitiveType = type; } in setPrimitiveType()
31 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
58 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
61 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
66 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer,
71 virtual void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
94 GrPrimitiveType fPrimitiveType;
DSkGr.h152 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
155 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
157 return GrPrimitiveType::kTriangleStrip; in SkVertexModeToGrPrimitiveType()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpuCommandBuffer.h75 const GrPrimitiveType primitiveType,
86 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
92 void sendIndexedMeshToGpu(GrPrimitiveType primType, in sendIndexedMeshToGpu()
101 void sendInstancedMeshToGpu(GrPrimitiveType,
106 void sendIndexedInstancedMeshToGpu(GrPrimitiveType,
DGrDawnGpuCommandBuffer.cpp274 static dawn::PrimitiveTopology to_dawn_primitive_topology(GrPrimitiveType primitiveType) { in to_dawn_primitive_topology()
276 case GrPrimitiveType::kTriangles: in to_dawn_primitive_topology()
278 case GrPrimitiveType::kTriangleStrip: in to_dawn_primitive_topology()
280 case GrPrimitiveType::kPoints: in to_dawn_primitive_topology()
282 case GrPrimitiveType::kLines: in to_dawn_primitive_topology()
284 case GrPrimitiveType::kLineStrip: in to_dawn_primitive_topology()
286 case GrPrimitiveType::kLinesAdjacency: in to_dawn_primitive_topology()
316 const GrPrimitiveType primitiveType, in applyState()
430 if (meshes[i].primitiveType() == GrPrimitiveType::kPoints) { in onDraw()
447 void GrDawnGpuRTCommandBuffer::sendInstancedMeshToGpu(GrPrimitiveType, in sendInstancedMeshToGpu() argument
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm83 GrPrimitiveType primType) {
157 GrPrimitiveType primitiveType = meshes[0].primitiveType();
328 static MTLPrimitiveType gr_to_mtl_primitive(GrPrimitiveType primitiveType) {
336 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangles == 0);
337 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangleStrip == 1);
338 GR_STATIC_ASSERT((int)GrPrimitiveType::kPoints == 2);
339 GR_STATIC_ASSERT((int)GrPrimitiveType::kLines == 3);
340 GR_STATIC_ASSERT((int)GrPrimitiveType::kLineStrip == 4);
342 SkASSERT(primitiveType <= GrPrimitiveType::kLineStrip);
366 void GrMtlGpuRTCommandBuffer::sendMeshToGpu(GrPrimitiveType primitiveType,
[all …]
DGrMtlGpuCommandBuffer.h84 GrPrimitiveType primType);
106 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount,
109 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount,
114 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
118 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h144 GrPrimitiveType);
156 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
162 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
172 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
176 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrVkPipelineStateBuilder.h45 GrPrimitiveType primitiveType,
70 GrPrimitiveType,
89 GrPrimitiveType primitiveType,
DGrVkPipeline.cpp152 static VkPrimitiveTopology gr_primitive_type_to_vk_topology(GrPrimitiveType primitiveType) { in gr_primitive_type_to_vk_topology()
154 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_vk_topology()
156 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_vk_topology()
158 case GrPrimitiveType::kPoints: in gr_primitive_type_to_vk_topology()
160 case GrPrimitiveType::kLines: in gr_primitive_type_to_vk_topology()
162 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_vk_topology()
164 case GrPrimitiveType::kLinesAdjacency: in gr_primitive_type_to_vk_topology()
170 static void setup_input_assembly_state(GrPrimitiveType primitiveType, in setup_input_assembly_state()
505 GrPrimitiveType primitiveType, VkRenderPass compatibleRenderPass, VkPipelineLayout layout, in Create()
DGrVkResourceProvider.h53 GrPrimitiveType primitiveType,
121 GrPrimitiveType,
204 GrPrimitiveType,
/third_party/skia/src/gpu/tessellate/shaders/
DGrTessellationShader.h20 GrTessellationShader(ClassID classID, GrPrimitiveType primitiveType, in GrTessellationShader()
33 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
81 const GrPrimitiveType fPrimitiveType;
/third_party/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.cpp116 case GrPrimitiveType::kTriangles: in set_primitive_topology()
119 case GrPrimitiveType::kTriangleStrip: in set_primitive_topology()
122 case GrPrimitiveType::kPoints: in set_primitive_topology()
125 case GrPrimitiveType::kLines: in set_primitive_topology()
128 case GrPrimitiveType::kLineStrip: in set_primitive_topology()
131 case GrPrimitiveType::kPatches: // Unsupported in set_primitive_topology()
132 case GrPrimitiveType::kPath: // Unsupported in set_primitive_topology()
/third_party/skia/src/gpu/vk/
DGrVkPipeline.cpp150 static VkPrimitiveTopology gr_primitive_type_to_vk_topology(GrPrimitiveType primitiveType) { in gr_primitive_type_to_vk_topology()
152 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_vk_topology()
154 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_vk_topology()
156 case GrPrimitiveType::kPoints: in gr_primitive_type_to_vk_topology()
158 case GrPrimitiveType::kLines: in gr_primitive_type_to_vk_topology()
160 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_vk_topology()
162 case GrPrimitiveType::kPatches: in gr_primitive_type_to_vk_topology()
163 case GrPrimitiveType::kPath: in gr_primitive_type_to_vk_topology()
169 static void setup_input_assembly_state(GrPrimitiveType primitiveType, in setup_input_assembly_state()
474 GrPrimitiveType primitiveType, in Make()
/third_party/skia/tests/
DGrMeshTest.cpp76 GrOpsRenderPass* bindPipeline(GrPrimitiveType, bool isInstanced, bool hasVertexBuffer);
182 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
204 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
226 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
280 GrPrimitiveType primitiveType = indexed ? GrPrimitiveType::kTriangles
281 : GrPrimitiveType::kTriangleStrip;
366 pass = helper->bindPipeline(GrPrimitiveType::kTriangles, true, true);
378 pass = helper->bindPipeline(GrPrimitiveType::kTriangleStrip, true, true);
552 GrOpsRenderPass* DrawMeshHelper::bindPipeline(GrPrimitiveType primitiveType, bool isInstanced,
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp132 static wgpu::PrimitiveTopology to_dawn_primitive_topology(GrPrimitiveType primitiveType) { in to_dawn_primitive_topology()
134 case GrPrimitiveType::kTriangles: in to_dawn_primitive_topology()
136 case GrPrimitiveType::kTriangleStrip: in to_dawn_primitive_topology()
138 case GrPrimitiveType::kPoints: in to_dawn_primitive_topology()
140 case GrPrimitiveType::kLines: in to_dawn_primitive_topology()
142 case GrPrimitiveType::kLineStrip: in to_dawn_primitive_topology()
144 case GrPrimitiveType::kPath: in to_dawn_primitive_topology()
403 GrPrimitiveType primitiveType = programInfo.primitiveType(); in Build()
404 if (primitiveType == GrPrimitiveType::kTriangleStrip || in Build()
405 primitiveType == GrPrimitiveType::kLineStrip) { in Build()

12345