Lines Matching refs:commandBuffers
26 device.freeCommandBuffers(commandPool, commandBuffers); in ~DrawTester()
96 submitInfo.pCommandBuffers = &commandBuffers[currentFrameBuffer]; in renderFrame()
362 commandBuffers = device.allocateCommandBuffers(commandBufferAllocateInfo); in createCommandBuffers()
364 for(size_t i = 0; i < commandBuffers.size(); i++) in createCommandBuffers()
367 commandBuffers[i].begin(commandBufferBeginInfo); in createCommandBuffers()
380 commandBuffers[i].beginRenderPass(renderPassBeginInfo, vk::SubpassContents::eInline); in createCommandBuffers()
384 commandBuffers[i].setViewport(0, 1, &viewport); in createCommandBuffers()
387 commandBuffers[i].setScissor(0, 1, &scissor); in createCommandBuffers()
391 …commandBuffers[i].bindDescriptorSets(vk::PipelineBindPoint::eGraphics, pipelineLayout, 0, 1, &desc… in createCommandBuffers()
397 commandBuffers[i].bindPipeline(vk::PipelineBindPoint::eGraphics, pipeline); in createCommandBuffers()
399 commandBuffers[i].bindVertexBuffers(0, 1, &vertices.buffer, &offset); in createCommandBuffers()
400 commandBuffers[i].draw(vertices.numVertices, 1, 0, 0); in createCommandBuffers()
403 commandBuffers[i].endRenderPass(); in createCommandBuffers()
404 commandBuffers[i].end(); in createCommandBuffers()