Lines Matching refs:mesh
59 void drawMesh(const GrMesh& mesh);
157 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
158 mesh.setNonIndexedNonInstanced(kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 mesh.setVertexData(vbuff, y * kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
178 mesh.setIndexed(ibuff, repetitionCount * 6, baseRepetition * 6, baseRepetition * 4, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
180 mesh.setVertexData(vbuff, (i - baseRepetition) * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
181 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
197 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
198 mesh.setIndexedPatterned(ibuff, 6, 4, kBoxCountX, kIndexPatternRepeatCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
199 mesh.setVertexData(vbuff, y * kBoxCountX * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
200 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 GrMesh mesh(indexed ? GrPrimitiveType::kTriangles in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
227 mesh.setIndexedInstanced(idxbuff, 6, instbuff, kBoxCountX, y * kBoxCountX, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
230 mesh.setInstanced(instbuff, kBoxCountX, y * kBoxCountX, 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
237 mesh.setVertexData(nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
243 mesh.setVertexData(vbuff); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
246 mesh.setVertexData(vbuff2, 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
249 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
386 void DrawMeshHelper::drawMesh(const GrMesh& mesh) { in drawMesh() argument
388 GrMeshTestProcessor mtp(mesh.isInstanced(), mesh.hasVertexData()); in drawMesh()
389 fState->rtCommandBuffer()->draw(mtp, pipeline, nullptr, nullptr, &mesh, 1, in drawMesh()