Lines Matching refs:commandBuffer
23 // set to 1 if you want to do GPU capture of the commandBuffer
42 auto commandBuffer = gpu->resourceProvider()->createCommandBuffer();
69 commandBuffer->beginRenderPass(renderPassDesc);
85 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline));
86 commandBuffer->draw(PrimitiveType::kTriangleStrip, 0, 4);
91 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline));
96 commandBuffer->bindUniformBuffer(uniformBuffer, uniformOffset);
97 commandBuffer->draw(PrimitiveType::kTriangleStrip, 0, 4);
108 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline));
131 commandBuffer->bindVertexBuffers(vertexBuffer, 0, nullptr, 0);
132 commandBuffer->bindIndexBuffer(indexBuffer, 0);
136 commandBuffer->bindUniformBuffer(uniformBuffer, uniformOffset);
137 commandBuffer->drawIndexed(PrimitiveType::kTriangles, 0, 6, 0);
149 commandBuffer->bindGraphicsPipeline(std::move(graphicsPipeline));
166 commandBuffer->bindVertexBuffers(nullptr, 0, instanceBuffer, 0);
167 // commandBuffer->drawInstanced(PrimitiveType::kTriangleStrip, 0, 4, 0, 2);
168 commandBuffer->drawIndexedInstanced(PrimitiveType::kTriangles, 0, 6, 0, 0, 2);
170 commandBuffer->endRenderPass();
184 commandBuffer->copyTextureToBuffer(target->refTexture(), srcRect, copyBuffer, 0, rowBytes);
186 bool result = gpu->submit(commandBuffer);