Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrVkCommandBuffer.cpp File Reference
#include "src/gpu/ganesh/vk/GrVkCommandBuffer.h"
#include "include/core/SkRect.h"
#include "src/core/SkTraceEvent.h"
#include "src/gpu/ganesh/vk/GrVkBuffer.h"
#include "src/gpu/ganesh/vk/GrVkCommandPool.h"
#include "src/gpu/ganesh/vk/GrVkFramebuffer.h"
#include "src/gpu/ganesh/vk/GrVkGpu.h"
#include "src/gpu/ganesh/vk/GrVkImage.h"
#include "src/gpu/ganesh/vk/GrVkImageView.h"
#include "src/gpu/ganesh/vk/GrVkPipeline.h"
#include "src/gpu/ganesh/vk/GrVkPipelineState.h"
#include "src/gpu/ganesh/vk/GrVkRenderPass.h"
#include "src/gpu/ganesh/vk/GrVkRenderTarget.h"
#include "src/gpu/ganesh/vk/GrVkUtil.h"

Go to the source code of this file.

Functions

static bool submit_to_queue (GrVkGpu *gpu, VkQueue queue, VkFence fence, uint32_t waitCount, const VkSemaphore *waitSemaphores, const VkPipelineStageFlags *waitStages, uint32_t commandBufferCount, const VkCommandBuffer *commandBuffers, uint32_t signalCount, const VkSemaphore *signalSemaphores, GrProtected protectedContext)
 

Function Documentation

◆ submit_to_queue()

static bool submit_to_queue ( GrVkGpu gpu,
VkQueue  queue,
VkFence  fence,
uint32_t  waitCount,
const VkSemaphore *  waitSemaphores,
const VkPipelineStageFlags waitStages,
uint32_t  commandBufferCount,
const VkCommandBuffer *  commandBuffers,
uint32_t  signalCount,
const VkSemaphore *  signalSemaphores,
GrProtected  protectedContext 
)
static

Definition at line 542 of file GrVkCommandBuffer.cpp.

552 {
553 VkProtectedSubmitInfo protectedSubmitInfo;
554 if (protectedContext == GrProtected::kYes) {
555 memset(&protectedSubmitInfo, 0, sizeof(VkProtectedSubmitInfo));
557 protectedSubmitInfo.pNext = nullptr;
558 protectedSubmitInfo.protectedSubmit = VK_TRUE;
559 }
560
561 VkSubmitInfo submitInfo;
562 memset(&submitInfo, 0, sizeof(VkSubmitInfo));
564 submitInfo.pNext = protectedContext == GrProtected::kYes ? &protectedSubmitInfo : nullptr;
565 submitInfo.waitSemaphoreCount = waitCount;
566 submitInfo.pWaitSemaphores = waitSemaphores;
567 submitInfo.pWaitDstStageMask = waitStages;
568 submitInfo.commandBufferCount = commandBufferCount;
569 submitInfo.pCommandBuffers = commandBuffers;
570 submitInfo.signalSemaphoreCount = signalCount;
571 submitInfo.pSignalSemaphores = signalSemaphores;
573 GR_VK_CALL_RESULT(gpu, result, QueueSubmit(queue, 1, &submitInfo, fence));
574 return result == VK_SUCCESS;
575}
#define GR_VK_CALL_RESULT(GPU, RESULT, X)
Definition GrVkUtil.h:35
GAsyncResult * result
VkStructureType sType
uint32_t waitSemaphoreCount
const VkPipelineStageFlags * pWaitDstStageMask
uint32_t commandBufferCount
const VkSemaphore * pWaitSemaphores
uint32_t signalSemaphoreCount
const VkCommandBuffer * pCommandBuffers
const void * pNext
const VkSemaphore * pSignalSemaphores
VkStructureType sType
#define VK_TRUE
VkResult
@ VK_SUCCESS
@ VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO
@ VK_STRUCTURE_TYPE_SUBMIT_INFO