15 #include <vsg/core/Object.h>
16 #include <vsg/vk/vulkan.h>
30 operator VkQueue()
const {
return _vkQueue; }
31 VkQueue vk()
const {
return _vkQueue; }
33 VkQueueFlags queueFlags()
const {
return _queueFlags; }
34 uint32_t queueFamilyIndex()
const {
return _queueFamilyIndex; }
35 uint32_t queueIndex()
const {
return _queueIndex; }
37 VkResult submit(
const std::vector<VkSubmitInfo>& submitInfos,
Fence* fence =
nullptr);
39 VkResult submit(
const VkSubmitInfo& submitInfo,
Fence* fence =
nullptr);
41 VkResult present(
const VkPresentInfoKHR& info);
46 Queue(VkQueue queue, VkQueueFlags queueFlags, uint32_t queueFamilyIndex, uint32_t queueIndex);
57 VkQueueFlags _queueFlags;
58 uint32_t _queueFamilyIndex;
64 using Queues = std::vector<ref_ptr<Queue>>;
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
Queue encapsulates a single vkQueue, used to submit vulkan commands for processing.
Definition: Queue.h:28