Lines Matching refs:commandBuffer
42 auto commandBuffer = gpu->resourceProvider()->createCommandBuffer(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS() local
69 commandBuffer->beginRenderPass(renderPassDesc); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
85 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline)); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
86 commandBuffer->draw(PrimitiveType::kTriangleStrip, 0, 4); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
91 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline)); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
96 commandBuffer->bindUniformBuffer(uniformBuffer, uniformOffset); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
97 commandBuffer->draw(PrimitiveType::kTriangleStrip, 0, 4); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
108 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline)); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
131 commandBuffer->bindVertexBuffers(vertexBuffer, 0, nullptr, 0); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
132 commandBuffer->bindIndexBuffer(indexBuffer, 0); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
136 commandBuffer->bindUniformBuffer(uniformBuffer, uniformOffset); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
137 commandBuffer->drawIndexed(PrimitiveType::kTriangles, 0, 6, 0); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
149 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline)); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
166 commandBuffer->bindVertexBuffers(nullptr, 0, instanceBuffer, 0); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
168 commandBuffer->drawIndexedInstanced(PrimitiveType::kTriangles, 0, 6, 0, 0, 2); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
170 commandBuffer->endRenderPass(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
184 commandBuffer->copyTextureToBuffer(target->refTexture(), srcRect, copyBuffer, 0, rowBytes); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
186 bool result = gpu->submit(commandBuffer); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()