Lines Matching refs:gpu

18 GrVkCommandBuffer* GrVkCommandBuffer::Create(const GrVkGpu* gpu, VkCommandPool cmdPool) {  in Create()  argument
28 VkResult err = GR_VK_CALL(gpu->vkInterface(), AllocateCommandBuffers(gpu->device(), in Create()
49 void GrVkCommandBuffer::freeGPUData(const GrVkGpu* gpu) const { in freeGPUData()
53 fTrackedResources[i]->unref(gpu); in freeGPUData()
58 GR_VK_CALL(gpu->vkInterface(), DestroyFence(gpu->device(), fSubmitFence, nullptr)); in freeGPUData()
61 GR_VK_CALL(gpu->vkInterface(), FreeCommandBuffers(gpu->device(), gpu->cmdPool(), in freeGPUData()
71 void GrVkCommandBuffer::begin(const GrVkGpu* gpu) { in begin() argument
80 GR_VK_CALL_ERRCHECK(gpu->vkInterface(), BeginCommandBuffer(fCmdBuffer, in begin()
85 void GrVkCommandBuffer::end(const GrVkGpu* gpu) { in end() argument
88 GR_VK_CALL_ERRCHECK(gpu->vkInterface(), EndCommandBuffer(fCmdBuffer)); in end()
95 void GrVkCommandBuffer::beginRenderPass(const GrVkGpu* gpu, in beginRenderPass() argument
103 GR_VK_CALL(gpu->vkInterface(), CmdBeginRenderPass(fCmdBuffer, &beginInfo, contents)); in beginRenderPass()
110 void GrVkCommandBuffer::endRenderPass(const GrVkGpu* gpu) { in endRenderPass() argument
113 GR_VK_CALL(gpu->vkInterface(), CmdEndRenderPass(fCmdBuffer)); in endRenderPass()
117 void GrVkCommandBuffer::submitToQueue(const GrVkGpu* gpu, VkQueue queue, GrVkGpu::SyncQueue sync) { in submitToQueue() argument
124 err = GR_VK_CALL(gpu->vkInterface(), CreateFence(gpu->device(), &fenceInfo, nullptr, in submitToQueue()
138 GR_VK_CALL_ERRCHECK(gpu->vkInterface(), QueueSubmit(queue, 1, &submitInfo, fSubmitFence)); in submitToQueue()
141 err = GR_VK_CALL(gpu->vkInterface(), in submitToQueue()
142 WaitForFences(gpu->device(), 1, &fSubmitFence, true, UINT64_MAX)); in submitToQueue()
150 GR_VK_CALL(gpu->vkInterface(), DestroyFence(gpu->device(), fSubmitFence, nullptr)); in submitToQueue()
155 bool GrVkCommandBuffer::finished(const GrVkGpu* gpu) const { in finished()
160 VkResult err = GR_VK_CALL(gpu->vkInterface(), GetFenceStatus(gpu->device(), fSubmitFence)); in finished()
181 void GrVkCommandBuffer::pipelineBarrier(const GrVkGpu* gpu, in pipelineBarrier() argument
193 GR_VK_CALL(gpu->vkInterface(), CmdPipelineBarrier(fCmdBuffer, srcStageMask, in pipelineBarrier()
204 GR_VK_CALL(gpu->vkInterface(), CmdPipelineBarrier(fCmdBuffer, srcStageMask, in pipelineBarrier()
215 GR_VK_CALL(gpu->vkInterface(), CmdPipelineBarrier(fCmdBuffer, srcStageMask, in pipelineBarrier()
226 void GrVkCommandBuffer::copyImage(const GrVkGpu* gpu, in copyImage() argument
237 GR_VK_CALL(gpu->vkInterface(), CmdCopyImage(fCmdBuffer, in copyImage()
246 void GrVkCommandBuffer::copyImageToBuffer(const GrVkGpu* gpu, in copyImageToBuffer() argument
256 GR_VK_CALL(gpu->vkInterface(), CmdCopyImageToBuffer(fCmdBuffer, in copyImageToBuffer()
264 void GrVkCommandBuffer::copyBufferToImage(const GrVkGpu* gpu, in copyBufferToImage() argument
274 GR_VK_CALL(gpu->vkInterface(), CmdCopyBufferToImage(fCmdBuffer, in copyBufferToImage()
282 void GrVkCommandBuffer::clearColorImage(const GrVkGpu* gpu, in clearColorImage() argument
290 GR_VK_CALL(gpu->vkInterface(), CmdClearColorImage(fCmdBuffer, in clearColorImage()
298 void GrVkCommandBuffer::clearAttachments(const GrVkGpu* gpu, in clearAttachments() argument
316 GR_VK_CALL(gpu->vkInterface(), CmdClearAttachments(fCmdBuffer, in clearAttachments()
323 void GrVkCommandBuffer::bindDescriptorSets(const GrVkGpu* gpu, in bindDescriptorSets() argument
332 GR_VK_CALL(gpu->vkInterface(), CmdBindDescriptorSets(fCmdBuffer, in bindDescriptorSets()
343 void GrVkCommandBuffer::drawIndexed(const GrVkGpu* gpu, in drawIndexed() argument
351 GR_VK_CALL(gpu->vkInterface(), CmdDrawIndexed(fCmdBuffer, in drawIndexed()
359 void GrVkCommandBuffer::draw(const GrVkGpu* gpu, in draw() argument
366 GR_VK_CALL(gpu->vkInterface(), CmdDraw(fCmdBuffer, in draw()