Home
last modified time | relevance | path

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

12345

/external/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp214 GrPrimitiveType, GrAAType, sk_sp<GrColorSpaceXform>, const SkMatrixProvider&,
250 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
252 return GrPrimitiveType::kTriangles == fPrimitiveType || in combinablePrimitive()
253 GrPrimitiveType::kLines == fPrimitiveType || in combinablePrimitive()
254 GrPrimitiveType::kPoints == fPrimitiveType; in combinablePrimitive()
293 GrPrimitiveType fPrimitiveType;
310 GrPrimitiveType primitiveType, in DrawVerticesOp()
338 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in DrawVerticesOp()
579 static GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
582 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
[all …]
DGrDefaultPathRenderer.cpp69 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()
335 GrPrimitiveType fPrimitiveType;
417 GrPrimitiveType primType() const { in primType()
425 return isIndexed ? GrPrimitiveType::kLines : GrPrimitiveType::kLineStrip; in primType()
[all …]
DGrMeshDrawOp.h58 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride,
72 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer,
79 GrPrimitiveType fPrimitiveType;
152 GrPrimitiveType) = 0;
160 GrPrimitiveType primitiveType) { in recordDraw()
DGrQuadPerEdgeAA.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.cpp55 GrMeshDrawOp::PatternHelper::PatternHelper(Target* target, GrPrimitiveType primitiveType, in PatternHelper()
63 void GrMeshDrawOp::PatternHelper::init(Target* target, GrPrimitiveType primitiveType, in init()
109 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(indexBuffer), in QuadHelper()
/external/skqp/src/gpu/ops/
DGrDrawVerticesOp.h46 GrPrimitiveType* overridePrimType = nullptr);
49 const SkVertices::Bone bones[], int boneCount, GrPrimitiveType, GrAAType,
96 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
98 return GrPrimitiveType::kTriangles == fPrimitiveType || in combinablePrimitive()
99 GrPrimitiveType::kLines == fPrimitiveType || in combinablePrimitive()
100 GrPrimitiveType::kPoints == fPrimitiveType; in combinablePrimitive()
159 GrPrimitiveType fPrimitiveType;
DGrDrawVerticesOp.cpp23 GrPrimitiveType* overridePrimType) { in Make()
25 GrPrimitiveType primType = overridePrimType ? *overridePrimType in Make()
34 int boneCount, GrPrimitiveType primitiveType, GrAAType aaType, in GrDrawVerticesOp()
89 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in GrDrawVerticesOp()
546 static uint32_t seed_vertices(GrPrimitiveType type) { in seed_vertices()
548 case GrPrimitiveType::kTriangles: in seed_vertices()
549 case GrPrimitiveType::kTriangleStrip: in seed_vertices()
551 case GrPrimitiveType::kPoints: in seed_vertices()
553 case GrPrimitiveType::kLines: in seed_vertices()
554 case GrPrimitiveType::kLineStrip: in seed_vertices()
[all …]
DGrDefaultPathRenderer.cpp67 PathGeoBuilder(GrPrimitiveType primitiveType, GrMeshDrawOp::Target* target, in PathGeoBuilder()
202 return GrPrimitiveType::kLines == fPrimitiveType || in isIndexed()
203 GrPrimitiveType::kTriangles == fPrimitiveType; in isIndexed()
206 return GrPrimitiveType::kLines == fPrimitiveType || in isHairline()
207 GrPrimitiveType::kLineStrip == fPrimitiveType; in isHairline()
211 case GrPrimitiveType::kLines: in indexScale()
213 case GrPrimitiveType::kTriangles: in indexScale()
314 GrPrimitiveType fPrimitiveType;
426 GrPrimitiveType primitiveType; in onPrepareDraws()
428 primitiveType = isIndexed ? GrPrimitiveType::kLines : GrPrimitiveType::kLineStrip; in onPrepareDraws()
[all …]
DGrMeshDrawOp.cpp23 GrMeshDrawOp::PatternHelper::PatternHelper(Target* target, GrPrimitiveType primitiveType, in PatternHelper()
31 void GrMeshDrawOp::PatternHelper::init(Target* target, GrPrimitiveType primitiveType, in init()
70 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(quadIndexBuffer), in QuadHelper()
/external/skqp/src/gpu/
DGrMesh.h24 GrMesh(GrPrimitiveType primitiveType = GrPrimitiveType::kTriangles)
29 void setPrimitiveType(GrPrimitiveType type) { fPrimitiveType = type; } in setPrimitiveType()
30 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
52 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
55 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
60 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer,
65 virtual void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
78 GrPrimitiveType fPrimitiveType;
DSkGr.h140 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
143 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
145 return GrPrimitiveType::kTriangleStrip; in SkVertexModeToGrPrimitiveType()
150 return GrPrimitiveType::kPoints; in SkVertexModeToGrPrimitiveType()
/external/skia/src/gpu/
DGrProgramInfo.h23 GrPrimitiveType primitiveType, in GrProgramInfo()
43 SkASSERT((GrPrimitiveType::kPatches == fPrimitiveType) == in GrProgramInfo()
69 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
71 SkASSERT(GrPrimitiveType::kPatches == fPrimitiveType); in tessellationPatchVertexCount()
109 GrPrimitiveType fPrimitiveType;
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm116 if (meshes[i].primitiveType() == GrPrimitiveType::kPoints) {
255 static MTLPrimitiveType gr_to_mtl_primitive(GrPrimitiveType primitiveType) {
263 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangles == 0);
264 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangleStrip == 1);
265 GR_STATIC_ASSERT((int)GrPrimitiveType::kPoints == 2);
266 GR_STATIC_ASSERT((int)GrPrimitiveType::kLines == 3);
267 GR_STATIC_ASSERT((int)GrPrimitiveType::kLineStrip == 4);
269 SkASSERT(primitiveType <= GrPrimitiveType::kLineStrip);
298 void GrMtlGpuRTCommandBuffer::sendInstancedMeshToGpu(GrPrimitiveType primitiveType,
307 SkASSERT(primitiveType != GrPrimitiveType::kLinesAdjacency); // Geometry shaders not supported.
[all …]
DGrMtlGpuCommandBuffer.h97 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
103 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
113 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
117 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
/external/skia/src/gpu/tessellate/
DGrFillPathShader.h20 GrPrimitiveType primitiveType) in GrFillPathShader()
71 GrPrimitiveType::kTriangles) { in GrFillTriangleShader()
88 GrPrimitiveType::kTriangleStrip) { in GrFillCubicHullShader()
108 GrPrimitiveType::kTriangleStrip) in GrFillBoundingBoxShader()
DGrStencilPathShader.h19 GrStencilPathShader(ClassID classID, const SkMatrix& viewMatrix, GrPrimitiveType primitiveType,
100 kTessellate_GrStencilTriangleShader_ClassID, viewMatrix, GrPrimitiveType::kTriangles) { in GrStencilTriangleShader()
111 kTessellate_GrCubicTessellateShader_ClassID, viewMatrix, GrPrimitiveType::kPatches, 4) { in GrCubicTessellateShader()
127 kTessellate_GrWedgeTessellateShader_ClassID, viewMatrix, GrPrimitiveType::kPatches, 5) { in GrWedgeTessellateShader()
182 GrPrimitiveType::kTriangles) { in GrMiddleOutCubicShader()
DGrPathShader.h22 GrPathShader(ClassID classID, const SkMatrix& viewMatrix, GrPrimitiveType primitiveType, in GrPathShader()
33 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
65 const GrPrimitiveType fPrimitiveType;
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h107 GrPrimitiveType);
119 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
135 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrVkPipelineStateBuilder.h45 GrPrimitiveType primitiveType,
70 GrPrimitiveType,
89 GrPrimitiveType primitiveType,
DGrVkPipeline.cpp144 static VkPrimitiveTopology gr_primitive_type_to_vk_topology(GrPrimitiveType primitiveType) { in gr_primitive_type_to_vk_topology()
146 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_vk_topology()
148 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_vk_topology()
150 case GrPrimitiveType::kPoints: in gr_primitive_type_to_vk_topology()
152 case GrPrimitiveType::kLines: in gr_primitive_type_to_vk_topology()
154 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_vk_topology()
156 case GrPrimitiveType::kLinesAdjacency: in gr_primitive_type_to_vk_topology()
163 static void setup_input_assembly_state(GrPrimitiveType primitiveType, in setup_input_assembly_state()
503 int shaderStageCount, GrPrimitiveType primitiveType, in Create()
/external/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.cpp115 case GrPrimitiveType::kTriangles: in set_primitive_topology()
118 case GrPrimitiveType::kTriangleStrip: in set_primitive_topology()
121 case GrPrimitiveType::kPoints: in set_primitive_topology()
124 case GrPrimitiveType::kLines: in set_primitive_topology()
127 case GrPrimitiveType::kLineStrip: in set_primitive_topology()
130 case GrPrimitiveType::kPatches: // Unsupported in set_primitive_topology()
131 case GrPrimitiveType::kPath: // Unsupported in set_primitive_topology()
/external/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()
497 GrPrimitiveType primitiveType, in Make()
/external/skia/tests/
DGrMeshTest.cpp77 GrOpsRenderPass* bindPipeline(GrPrimitiveType, bool isInstanced, bool hasVertexBuffer);
183 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
205 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
227 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
281 GrPrimitiveType primitiveType = indexed ? GrPrimitiveType::kTriangles
282 : GrPrimitiveType::kTriangleStrip;
367 pass = helper->bindPipeline(GrPrimitiveType::kTriangles, true, true);
379 pass = helper->bindPipeline(GrPrimitiveType::kTriangleStrip, true, true);
550 GrOpsRenderPass* DrawMeshHelper::bindPipeline(GrPrimitiveType primitiveType, bool isInstanced,
/external/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp131 static wgpu::PrimitiveTopology to_dawn_primitive_topology(GrPrimitiveType primitiveType) { in to_dawn_primitive_topology()
133 case GrPrimitiveType::kTriangles: in to_dawn_primitive_topology()
135 case GrPrimitiveType::kTriangleStrip: in to_dawn_primitive_topology()
137 case GrPrimitiveType::kPoints: in to_dawn_primitive_topology()
139 case GrPrimitiveType::kLines: in to_dawn_primitive_topology()
141 case GrPrimitiveType::kLineStrip: in to_dawn_primitive_topology()
143 case GrPrimitiveType::kPath: in to_dawn_primitive_topology()
407 GrPrimitiveType primitiveType = programInfo.primitiveType(); in Build()
408 if (primitiveType == GrPrimitiveType::kTriangleStrip || in Build()
409 primitiveType == GrPrimitiveType::kLineStrip) { in Build()
/external/skqp/include/private/
DGrTypesPriv.h82 enum class GrPrimitiveType { enum
90 static constexpr int kNumGrPrimitiveTypes = (int)GrPrimitiveType::kLinesAdjacency + 1;
92 static constexpr bool GrIsPrimTypeLines(GrPrimitiveType type) { in GrIsPrimTypeLines()
93 return GrPrimitiveType::kLines == type || in GrIsPrimTypeLines()
94 GrPrimitiveType::kLineStrip == type || in GrIsPrimTypeLines()
95 GrPrimitiveType::kLinesAdjacency == type; in GrIsPrimTypeLines()
98 static constexpr bool GrIsPrimTypeTris(GrPrimitiveType type) { in GrIsPrimTypeTris()
99 return GrPrimitiveType::kTriangles == type || GrPrimitiveType::kTriangleStrip == type; in GrIsPrimTypeTris()
102 static constexpr bool GrPrimTypeRequiresGeometryShaderSupport(GrPrimitiveType type) { in GrPrimTypeRequiresGeometryShaderSupport()
103 return GrPrimitiveType::kLinesAdjacency == type; in GrPrimTypeRequiresGeometryShaderSupport()

12345