Class VulkanRenderModuleGraphicsQueue
java.lang.Object
io.codetoil.curved_spacetime.vulkan.VulkanModuleQueue
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleGraphicsQueue
- Direct Known Subclasses:
VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue
A queue selected for graphics work.
Adds queue-family discovery to VulkanModuleQueue: rather than being told which family to
use, this finds one advertising the graphics capability.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA queue selected for presenting to a particular surface. -
Field Summary
Fields inherited from class VulkanModuleQueue
logger, queueFamilyIndex, vkQueue -
Constructor Summary
ConstructorsConstructorDescriptionVulkanRenderModuleGraphicsQueue(VulkanModuleLogicalDevice vulkanModuleLogicalDevice, int queueFamilyIndex, int queueIndex, Logger logger) Retrieves a queue from an explicitly chosen family.VulkanRenderModuleGraphicsQueue(VulkanModuleLogicalDevice vulkanModuleLogicalDevice, int queueIndex, Logger logger) Retrieves a queue from the first family that supports graphics. -
Method Summary
Methods inherited from class VulkanModuleQueue
getQueueFamilyIndex, getVkQueue, submit, waitIdle
-
Constructor Details
-
VulkanRenderModuleGraphicsQueue
public VulkanRenderModuleGraphicsQueue(VulkanModuleLogicalDevice vulkanModuleLogicalDevice, int queueFamilyIndex, int queueIndex, Logger logger) Retrieves a queue from an explicitly chosen family.- Parameters:
vulkanModuleLogicalDevice- the device that owns the queuequeueFamilyIndex- the family to take the queue fromqueueIndex- the index within that familylogger- the logger to write queue diagnostics to
-
VulkanRenderModuleGraphicsQueue
public VulkanRenderModuleGraphicsQueue(VulkanModuleLogicalDevice vulkanModuleLogicalDevice, int queueIndex, Logger logger) Retrieves a queue from the first family that supports graphics.- Parameters:
vulkanModuleLogicalDevice- the device that owns the queuequeueIndex- the index within the discovered familylogger- the logger to write queue diagnostics to- Throws:
RuntimeException- if the device advertises no graphics-capable queue family
-