Home
last modified time | relevance | path

Searched refs:PrimitiveMode (Results 1 – 25 of 122) sorted by relevance

12345

/external/angle/src/libANGLE/
DContext.inl.h24 constexpr angle::PackedEnumMap<PrimitiveMode, GLsizei> kMinimumPrimitiveCounts = {{
25 {PrimitiveMode::Points, 1},
26 {PrimitiveMode::Lines, 2},
27 {PrimitiveMode::LineLoop, 2},
28 {PrimitiveMode::LineStrip, 2},
29 {PrimitiveMode::Triangles, 3},
30 {PrimitiveMode::TriangleStrip, 3},
31 {PrimitiveMode::TriangleFan, 3},
32 {PrimitiveMode::LinesAdjacency, 2},
33 {PrimitiveMode::LineStripAdjacency, 2},
[all …]
DTransformFeedback.cpp23 angle::CheckedNumeric<GLsizeiptr> GetVerticesNeededForDraw(PrimitiveMode primitiveMode, in GetVerticesNeededForDraw()
37 case PrimitiveMode::Triangles: in GetVerticesNeededForDraw()
39 case PrimitiveMode::Lines: in GetVerticesNeededForDraw()
41 case PrimitiveMode::Points: in GetVerticesNeededForDraw()
52 mPrimitiveMode(PrimitiveMode::InvalidEnum), in TransformFeedbackState()
76 case gl::PrimitiveMode::Points: in getPrimitivesDrawn()
78 case gl::PrimitiveMode::Lines: in getPrimitivesDrawn()
80 case gl::PrimitiveMode::Triangles: in getPrimitivesDrawn()
134 PrimitiveMode primitiveMode, in begin()
169 mState.mPrimitiveMode = PrimitiveMode::InvalidEnum; in end()
[all …]
DTransformFeedback_unittest.cpp75 EXPECT_CALL(*mImpl, begin(nullptr, gl::PrimitiveMode::Triangles)); in TEST_F()
77 mFeedback->begin(nullptr, gl::PrimitiveMode::Triangles, nullptr)); in TEST_F()
79 EXPECT_EQ(gl::PrimitiveMode::Triangles, mFeedback->getPrimitiveMode()); in TEST_F()
90 EXPECT_CALL(*mImpl, begin(nullptr, gl::PrimitiveMode::Triangles)); in TEST_F()
92 mFeedback->begin(nullptr, gl::PrimitiveMode::Triangles, nullptr)); in TEST_F()
DvalidationESEXT.cpp131 PrimitiveMode mode, in ValidateDrawElementsBaseVertexEXT()
147 PrimitiveMode mode, in ValidateDrawElementsInstancedBaseVertexEXT()
164 PrimitiveMode mode, in ValidateDrawRangeElementsBaseVertexEXT()
210 PrimitiveMode mode, in ValidateMultiDrawElementsBaseVertexEXT()
221 PrimitiveMode mode, in ValidateDrawElementsBaseVertexOES()
237 PrimitiveMode mode, in ValidateDrawElementsInstancedBaseVertexOES()
254 PrimitiveMode mode, in ValidateDrawRangeElementsBaseVertexOES()
DTransformFeedback.h50 PrimitiveMode mPrimitiveMode;
70 angle::Result begin(const Context *context, PrimitiveMode primitiveMode, Program *program);
78 PrimitiveMode getPrimitiveMode() const;
Dcapture_gles_ext_params.cpp21 PrimitiveMode modePacked, in CaptureDrawElementsInstancedBaseVertexBaseInstanceANGLE_indices()
35 PrimitiveMode modePacked, in CaptureMultiDrawArraysInstancedBaseInstanceANGLE_firsts()
48 PrimitiveMode modePacked, in CaptureMultiDrawArraysInstancedBaseInstanceANGLE_counts()
62 PrimitiveMode modePacked, in CaptureMultiDrawArraysInstancedBaseInstanceANGLE_instanceCounts()
76 PrimitiveMode modePacked, in CaptureMultiDrawArraysInstancedBaseInstanceANGLE_baseInstances()
90 PrimitiveMode modePacked, in CaptureMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE_counts()
106 PrimitiveMode modePacked, in CaptureMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE_indices()
122 PrimitiveMode modePacked, in CaptureMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE_instanceCounts()
138 PrimitiveMode modePacked, in CaptureMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE_baseVertices()
154 PrimitiveMode modePacked, in CaptureMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE_baseInstances()
[all …]
DvalidationES.h329 void RecordDrawModeError(const Context *context, PrimitiveMode mode);
332 ANGLE_INLINE bool ValidateDrawBase(const Context *context, PrimitiveMode mode) in ValidateDrawBase()
358 PrimitiveMode mode,
363 PrimitiveMode mode,
368 PrimitiveMode mode,
374 PrimitiveMode mode,
380 PrimitiveMode mode,
386 PrimitiveMode mode,
659 PrimitiveMode transformFeedbackPrimitiveMode,
660 PrimitiveMode renderPrimitiveMode);
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DContext11.h80 gl::PrimitiveMode mode,
84 gl::PrimitiveMode mode,
89 gl::PrimitiveMode mode,
96 gl::PrimitiveMode mode,
101 gl::PrimitiveMode mode,
107 gl::PrimitiveMode mode,
113 gl::PrimitiveMode mode,
120 gl::PrimitiveMode mode,
128 gl::PrimitiveMode mode,
135 gl::PrimitiveMode mode,
[all …]
DContext11.cpp44 bool DrawCallHasStreamingVertexArrays(const gl::Context *context, gl::PrimitiveMode mode) in DrawCallHasStreamingVertexArrays()
49 if (DrawCallHasDynamicAttribs(context) || mode == gl::PrimitiveMode::LineLoop || in DrawCallHasStreamingVertexArrays()
50 mode == gl::PrimitiveMode::TriangleFan) in DrawCallHasStreamingVertexArrays()
261 gl::PrimitiveMode mode, in drawArrays()
272 gl::PrimitiveMode mode, in drawArraysInstanced()
284 gl::PrimitiveMode mode, in drawArraysInstancedBaseInstance()
297 gl::PrimitiveMode mode, in drawElementsImpl()
329 gl::PrimitiveMode mode, in drawElements()
338 gl::PrimitiveMode mode, in drawElementsBaseVertex()
348 gl::PrimitiveMode mode, in drawElementsInstanced()
[all …]
/external/angle/src/libANGLE/renderer/
DContextImpl.h46 gl::PrimitiveMode mode,
50 gl::PrimitiveMode mode,
56 gl::PrimitiveMode mode,
63 gl::PrimitiveMode mode,
68 gl::PrimitiveMode mode,
74 gl::PrimitiveMode mode,
80 gl::PrimitiveMode mode,
87 gl::PrimitiveMode mode,
95 gl::PrimitiveMode mode,
102 gl::PrimitiveMode mode,
[all …]
/external/angle/src/common/
DPackedEnums.cpp192 std::ostream &operator<<(std::ostream &os, PrimitiveMode value) in operator <<()
196 case PrimitiveMode::LineLoop: in operator <<()
199 case PrimitiveMode::Lines: in operator <<()
202 case PrimitiveMode::LinesAdjacency: in operator <<()
205 case PrimitiveMode::LineStrip: in operator <<()
208 case PrimitiveMode::LineStripAdjacency: in operator <<()
211 case PrimitiveMode::Points: in operator <<()
214 case PrimitiveMode::TriangleFan: in operator <<()
217 case PrimitiveMode::Triangles: in operator <<()
220 case PrimitiveMode::TrianglesAdjacency: in operator <<()
[all …]
Dutilities.cpp665 bool IsTriangleMode(PrimitiveMode drawMode) in IsTriangleMode()
669 case PrimitiveMode::Triangles: in IsTriangleMode()
670 case PrimitiveMode::TriangleFan: in IsTriangleMode()
671 case PrimitiveMode::TriangleStrip: in IsTriangleMode()
673 case PrimitiveMode::Points: in IsTriangleMode()
674 case PrimitiveMode::Lines: in IsTriangleMode()
675 case PrimitiveMode::LineLoop: in IsTriangleMode()
676 case PrimitiveMode::LineStrip: in IsTriangleMode()
685 bool IsPolygonMode(PrimitiveMode mode) in IsPolygonMode()
689 case PrimitiveMode::Points: in IsPolygonMode()
[all …]
DPackedEnums.h226 enum class PrimitiveMode : uint8_t enum
248 constexpr PrimitiveMode FromGLenum<PrimitiveMode>(GLenum from)
250 if (from >= static_cast<GLenum>(PrimitiveMode::EnumCount))
252 return PrimitiveMode::InvalidEnum;
255 return static_cast<PrimitiveMode>(from);
258 constexpr GLenum ToGLenum(PrimitiveMode from) in ToGLenum()
263 static_assert(ToGLenum(PrimitiveMode::Points) == GL_POINTS, "PrimitiveMode violation");
264 static_assert(ToGLenum(PrimitiveMode::Lines) == GL_LINES, "PrimitiveMode violation");
265 static_assert(ToGLenum(PrimitiveMode::LineLoop) == GL_LINE_LOOP, "PrimitiveMode violation");
266 static_assert(ToGLenum(PrimitiveMode::LineStrip) == GL_LINE_STRIP, "PrimitiveMode violation");
[all …]
/external/angle/src/libANGLE/renderer/null/
DContextNULL.h49 gl::PrimitiveMode mode,
53 gl::PrimitiveMode mode,
58 gl::PrimitiveMode mode,
65 gl::PrimitiveMode mode,
70 gl::PrimitiveMode mode,
76 gl::PrimitiveMode mode,
82 gl::PrimitiveMode mode,
89 gl::PrimitiveMode mode,
97 gl::PrimitiveMode mode,
104 gl::PrimitiveMode mode,
[all …]
DContextNULL.cpp128 gl::PrimitiveMode mode, in drawArrays()
136 gl::PrimitiveMode mode, in drawArraysInstanced()
145 gl::PrimitiveMode mode, in drawArraysInstancedBaseInstance()
155 gl::PrimitiveMode mode, in drawElements()
164 gl::PrimitiveMode mode, in drawElementsBaseVertex()
174 gl::PrimitiveMode mode, in drawElementsInstanced()
184 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertex()
195 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertexBaseInstance()
207 gl::PrimitiveMode mode, in drawRangeElements()
218 gl::PrimitiveMode mode, in drawRangeElementsBaseVertex()
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DContext9.h79 gl::PrimitiveMode mode,
83 gl::PrimitiveMode mode,
88 gl::PrimitiveMode mode,
95 gl::PrimitiveMode mode,
100 gl::PrimitiveMode mode,
106 gl::PrimitiveMode mode,
112 gl::PrimitiveMode mode,
119 gl::PrimitiveMode mode,
127 gl::PrimitiveMode mode,
134 gl::PrimitiveMode mode,
[all …]
DContext9.cpp163 gl::PrimitiveMode mode, in drawArrays()
171 gl::PrimitiveMode mode, in drawArraysInstanced()
180 gl::PrimitiveMode mode, in drawArraysInstancedBaseInstance()
191 gl::PrimitiveMode mode, in drawElements()
200 gl::PrimitiveMode mode, in drawElementsBaseVertex()
211 gl::PrimitiveMode mode, in drawElementsInstanced()
221 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertex()
233 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertexBaseInstance()
246 gl::PrimitiveMode mode, in drawRangeElements()
257 gl::PrimitiveMode mode, in drawRangeElementsBaseVertex()
[all …]
DRenderer9.h138 angle::Result updateState(const gl::Context *context, gl::PrimitiveMode drawMode);
144 gl::PrimitiveMode drawMode,
152 bool applyPrimitiveType(gl::PrimitiveMode primitiveType,
156 gl::PrimitiveMode mode,
164 gl::PrimitiveMode mode,
393 gl::PrimitiveMode mode,
399 gl::PrimitiveMode mode,
429 gl::PrimitiveMode mode,
434 gl::PrimitiveMode mode,
440 angle::Result applyShaders(const gl::Context *context, gl::PrimitiveMode drawMode);
[all …]
/external/angle/src/libANGLE/renderer/gl/
DContextGL.h94 gl::PrimitiveMode mode,
98 gl::PrimitiveMode mode,
103 gl::PrimitiveMode mode,
110 gl::PrimitiveMode mode,
115 gl::PrimitiveMode mode,
121 gl::PrimitiveMode mode,
127 gl::PrimitiveMode mode,
134 gl::PrimitiveMode mode,
142 gl::PrimitiveMode mode,
149 gl::PrimitiveMode mode,
[all …]
DTransformFeedbackGL.cpp44 gl::PrimitiveMode primitiveMode) in begin()
55 syncActiveState(context, false, gl::PrimitiveMode::InvalidEnum); in end()
110 gl::PrimitiveMode primitiveMode) const in syncActiveState()
120 ASSERT(primitiveMode != gl::PrimitiveMode::InvalidEnum); in syncActiveState()
DContextGL.cpp267 gl::PrimitiveMode mode, in drawArrays()
292 gl::PrimitiveMode mode, in drawArraysInstanced()
387 gl::PrimitiveMode mode, in drawArraysInstancedBaseInstance()
429 gl::PrimitiveMode mode, in drawElements()
458 gl::PrimitiveMode mode, in drawElementsBaseVertex()
489 gl::PrimitiveMode mode, in drawElementsInstanced()
511 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertex()
534 gl::PrimitiveMode mode, in drawElementsInstancedBaseVertexBaseInstance()
580 gl::PrimitiveMode mode, in drawRangeElements()
608 gl::PrimitiveMode mode, in drawRangeElementsBaseVertex()
[all …]
/external/angle/src/libANGLE/renderer/metal/
DContextMtl.h47 gl::PrimitiveMode mode,
51 gl::PrimitiveMode mode,
56 gl::PrimitiveMode mode,
63 gl::PrimitiveMode mode,
68 gl::PrimitiveMode mode,
74 gl::PrimitiveMode mode,
80 gl::PrimitiveMode mode,
87 gl::PrimitiveMode mode,
95 gl::PrimitiveMode mode,
102 gl::PrimitiveMode mode,
[all …]
Dmtl_utils.mm386 PrimitiveTopologyClass GetPrimitiveTopologyClass(gl::PrimitiveMode mode)
393 PrimitiveTopologyClass GetPrimitiveTopologyClass(gl::PrimitiveMode mode)
399 MTLPrimitiveType GetPrimitiveType(gl::PrimitiveMode mode)
403 case gl::PrimitiveMode::Triangles:
405 case gl::PrimitiveMode::Points:
407 case gl::PrimitiveMode::Lines:
409 case gl::PrimitiveMode::LineStrip:
410 case gl::PrimitiveMode::LineLoop:
412 case gl::PrimitiveMode::TriangleStrip:
414 case gl::PrimitiveMode::TriangleFan:
/external/angle/src/libANGLE/renderer/vulkan/
DContextVk.h283 gl::PrimitiveMode mode,
287 gl::PrimitiveMode mode,
292 gl::PrimitiveMode mode,
299 gl::PrimitiveMode mode,
304 gl::PrimitiveMode mode,
310 gl::PrimitiveMode mode,
316 gl::PrimitiveMode mode,
323 gl::PrimitiveMode mode,
331 gl::PrimitiveMode mode,
338 gl::PrimitiveMode mode,
[all …]
/external/angle/src/libANGLE/renderer/d3d/
DRendererD3D.cpp47 bool RendererD3D::skipDraw(const gl::State &glState, gl::PrimitiveMode drawMode) in skipDraw()
49 if (drawMode == gl::PrimitiveMode::Points) in skipDraw()
175 bool InstancedPointSpritesActive(ProgramD3D *programD3D, gl::PrimitiveMode mode) in InstancedPointSpritesActive()
178 mode == gl::PrimitiveMode::Points; in InstancedPointSpritesActive()

12345