Home
last modified time | relevance | path

Searched refs:vertexLayout (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/gpu/
DGrDrawState.cpp152 size_t GrDrawState::VertexSize(GrVertexLayout vertexLayout) { in VertexSize() argument
153 GrAssert(check_layout(vertexLayout)); in VertexSize()
155 size_t vecSize = (vertexLayout & kTextFormat_VertexLayoutBit) ? in VertexSize()
160 size += num_tex_coords(vertexLayout) * vecSize; in VertexSize()
161 if (vertexLayout & kColor_VertexLayoutBit) { in VertexSize()
164 if (vertexLayout & kCoverage_VertexLayoutBit) { in VertexSize()
167 if (vertexLayout & kEdge_VertexLayoutBit) { in VertexSize()
188 int GrDrawState::VertexStageCoordOffset(int stageIdx, GrVertexLayout vertexLayout) { in VertexStageCoordOffset() argument
189 GrAssert(check_layout(vertexLayout)); in VertexStageCoordOffset()
191 if (!StageUsesTexCoords(vertexLayout, stageIdx)) { in VertexStageCoordOffset()
[all …]
DGrDrawTarget.cpp139 bool GrDrawTarget::reserveVertexSpace(GrVertexLayout vertexLayout, in reserveVertexSpace() argument
149 acquired = this->onReserveVertexSpace(GrDrawState::VertexSize(vertexLayout), in reserveVertexSpace()
156 geoSrc.fVertexLayout = vertexLayout; in reserveVertexSpace()
184 bool GrDrawTarget::reserveVertexAndIndexSpace(GrVertexLayout vertexLayout, in reserveVertexAndIndexSpace() argument
189 …this->willReserveVertexAndIndexSpace(GrDrawState::VertexSize(vertexLayout), vertexCount, indexCoun… in reserveVertexAndIndexSpace()
191 if (!this->reserveVertexSpace(vertexLayout, vertexCount, vertices)) { in reserveVertexAndIndexSpace()
267 void GrDrawTarget::setVertexSourceToArray(GrVertexLayout vertexLayout, in setVertexSourceToArray() argument
273 geoSrc.fVertexLayout = vertexLayout; in setVertexSourceToArray()
287 void GrDrawTarget::setVertexSourceToBuffer(GrVertexLayout vertexLayout, in setVertexSourceToBuffer() argument
294 geoSrc.fVertexLayout = vertexLayout; in setVertexSourceToBuffer()
[all …]
DGrDrawTarget.h244 bool reserveVertexAndIndexSpace(GrVertexLayout vertexLayout,
284 void setVertexSourceToArray(GrVertexLayout vertexLayout,
305 void setVertexSourceToBuffer(GrVertexLayout vertexLayout,
560 GrVertexLayout vertexLayout,
566 GrVertexLayout vertexLayout,
819 bool reserveVertexSpace(GrVertexLayout vertexLayout,
DGrDrawState.h189 static size_t VertexSize(GrVertexLayout vertexLayout);
203 static int VertexTexCoordsForStage(int stageIdx, GrVertexLayout vertexLayout);
211 static int VertexStageCoordOffset(int stageIdx, GrVertexLayout vertexLayout);
218 static int VertexColorOffset(GrVertexLayout vertexLayout);
225 static int VertexCoverageOffset(GrVertexLayout vertexLayout);
232 static int VertexEdgeOffset(GrVertexLayout vertexLayout);
245 GrVertexLayout vertexLayout);
270 static int VertexSizeAndOffsetsByIdx(GrVertexLayout vertexLayout,
301 static int VertexSizeAndOffsetsByStage(GrVertexLayout vertexLayout,