Lines Matching refs:helper
168 [&](DrawMeshHelper* helper) { argument
177 helper->fVertBuffer = helper->makeVertexBuffer(expandedVertexData);
178 VALIDATE(helper->fVertBuffer);
180 [&](DrawMeshHelper* helper) { argument
182 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
183 pass->bindBuffers(nullptr, nullptr, helper->fVertBuffer);
189 [&](DrawMeshHelper* helper) { argument
190 helper->fIndexBuffer = helper->getIndexBuffer();
191 VALIDATE(helper->fIndexBuffer);
192 helper->fVertBuffer = helper->makeVertexBuffer(vertexData);
193 VALIDATE(helper->fVertBuffer);
195 [&](DrawMeshHelper* helper) { argument
204 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
205 pass->bindBuffers(helper->fIndexBuffer, nullptr, helper->fVertBuffer);
216 [&](DrawMeshHelper* helper) { argument
217 helper->fIndexBuffer = helper->getIndexBuffer();
218 VALIDATE(helper->fIndexBuffer);
219 helper->fVertBuffer = helper->makeVertexBuffer(vertexData);
220 VALIDATE(helper->fVertBuffer);
222 [&](DrawMeshHelper* helper) { argument
226 auto pass = helper->bindPipeline(GrPrimitiveType::kTriangles, false, true);
227 pass->bindBuffers(helper->fIndexBuffer, nullptr, helper->fVertBuffer);
241 [&](DrawMeshHelper* helper) { argument
242 helper->fIndexBuffer = indexed ? helper->getIndexBuffer() : nullptr;
248 helper->fIndexBuffer2 = helper->makeIndexBuffer(baseIndexData.begin(),
250 helper->fInstBuffer = helper->makeVertexBuffer(boxes);
251 VALIDATE(helper->fInstBuffer);
252 helper->fVertBuffer =
253 helper->makeVertexBuffer(std::vector<float>{0,0, 0,1, 1,0, 1,1});
254 VALIDATE(helper->fVertBuffer);
255 helper->fVertBuffer2 = helper->makeVertexBuffer( // for testing base vertex.
257 VALIDATE(helper->fVertBuffer2);
259 [&](DrawMeshHelper* helper) { argument
272 vertexBuffer = helper->fVertBuffer;
275 vertexBuffer = helper->fVertBuffer2;
282 auto pass = helper->bindPipeline(primitiveType, true,
286 helper->fIndexBuffer2 : helper->fIndexBuffer;
289 pass->bindBuffers(std::move(indexBuffer), helper->fInstBuffer,
294 pass->bindBuffers(nullptr, helper->fInstBuffer,
309 [&](DrawMeshHelper* helper) { argument
317 helper->fIndexBuffer2 = helper->makeIndexBuffer(baseIndexData.begin(),
319 VALIDATE(helper->fIndexBuffer2);
320 helper->fInstBuffer = helper->makeVertexBuffer(boxes);
321 VALIDATE(helper->fInstBuffer);
322 helper->fVertBuffer = helper->makeVertexBuffer(std::vector<float>{
324 VALIDATE(helper->fVertBuffer);
334 helper->target()->makeDrawIndirectSpace(29, &ignoredBuff, &ignoredOffset);
335 indexedIndirectWriter = helper->target()->makeDrawIndexedIndirectSpace(
336 kBoxCountY, &helper->fDrawIndirectBuffer,
337 &helper->fDrawIndirectBufferOffset);
344 helper->target()->makeDrawIndexedIndirectSpace(7, &ignoredBuff,
346 indirectWriter = helper->target()->makeDrawIndirectSpace(
347 kBoxCountY, &helper->fDrawIndirectBuffer,
348 &helper->fDrawIndirectBufferOffset);
363 [&](DrawMeshHelper* helper) { argument
366 pass = helper->bindPipeline(GrPrimitiveType::kTriangles, true, true);
367 pass->bindBuffers(helper->fIndexBuffer2, helper->fInstBuffer,
368 helper->fVertBuffer);
372 size_t offset = helper->fDrawIndirectBufferOffset + start *
374 pass->drawIndexedIndirect(helper->fDrawIndirectBuffer.get(), offset,
378 pass = helper->bindPipeline(GrPrimitiveType::kTriangleStrip, true, true);
379 pass->bindBuffers(nullptr, helper->fInstBuffer, helper->fVertBuffer);
383 size_t offset = helper->fDrawIndirectBufferOffset + start *
385 pass->drawIndirect(helper->fDrawIndirectBuffer.get(), offset,