Home
last modified time | relevance | path

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

12345

/external/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()
579 GrPrimitiveType* overridePrimType) { in Make()
581 GrPrimitiveType primType = overridePrimType ? *overridePrimType in Make()
[all …]
DGrDefaultPathRenderer.cpp68 PathGeoBuilder(GrPrimitiveType primitiveType, GrMeshDrawOp::Target* target, in PathGeoBuilder()
200 return GrPrimitiveType::kLines == fPrimitiveType || in isIndexed()
201 GrPrimitiveType::kTriangles == fPrimitiveType; in isIndexed()
204 return GrPrimitiveType::kLines == fPrimitiveType || in isHairline()
205 GrPrimitiveType::kLineStrip == fPrimitiveType; in isHairline()
209 case GrPrimitiveType::kLines: in indexScale()
211 case GrPrimitiveType::kTriangles: in indexScale()
312 GrPrimitiveType fPrimitiveType;
423 GrPrimitiveType primitiveType; in onPrepareDraws()
425 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()
/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/
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.h142 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
145 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
147 return GrPrimitiveType::kTriangleStrip; in SkVertexModeToGrPrimitiveType()
152 return GrPrimitiveType::kPoints; in SkVertexModeToGrPrimitiveType()
/external/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm103 GrPrimitiveType primType) {
141 GrPrimitiveType primitiveType = meshes[0].primitiveType();
256 static MTLPrimitiveType gr_to_mtl_primitive(GrPrimitiveType primitiveType) {
264 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangles == 0);
265 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangleStrip == 1);
266 GR_STATIC_ASSERT((int)GrPrimitiveType::kPoints == 2);
267 GR_STATIC_ASSERT((int)GrPrimitiveType::kLines == 3);
268 GR_STATIC_ASSERT((int)GrPrimitiveType::kLineStrip == 4);
270 SkASSERT(primitiveType <= GrPrimitiveType::kLineStrip);
299 void GrMtlGpuRTCommandBuffer::sendInstancedMeshToGpu(GrPrimitiveType primitiveType,
[all …]
DGrMtlGpuCommandBuffer.h75 GrPrimitiveType primType);
95 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
101 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
111 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
115 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
DGrMtlResourceProvider.h34 GrPrimitiveType);
50 GrPrimitiveType);
/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/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/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.cpp148 static VkPrimitiveTopology gr_primitive_type_to_vk_topology(GrPrimitiveType primitiveType) { in gr_primitive_type_to_vk_topology()
150 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_vk_topology()
152 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_vk_topology()
154 case GrPrimitiveType::kPoints: in gr_primitive_type_to_vk_topology()
156 case GrPrimitiveType::kLines: in gr_primitive_type_to_vk_topology()
158 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_vk_topology()
160 case GrPrimitiveType::kLinesAdjacency: in gr_primitive_type_to_vk_topology()
167 static void setup_input_assembly_state(GrPrimitiveType primitiveType, in setup_input_assembly_state()
507 int shaderStageCount, GrPrimitiveType primitiveType, in Create()
/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()
/external/skia/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