Class VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue
java.lang.Object
io.codetoil.curved_spacetime.vulkan.VulkanModuleQueue
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleGraphicsQueue
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue
- Enclosing class:
VulkanRenderModuleGraphicsQueue
public static class VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue
extends VulkanRenderModuleGraphicsQueue
A queue selected for presenting to a particular surface.
Presentation support is a property of a queue family and a surface, not of the device alone, so the family is discovered by asking about the surface. It may or may not be the same family as the graphics queue.
-
Nested Class Summary
Nested classes/interfaces inherited from class VulkanRenderModuleGraphicsQueue
VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue -
Field Summary
Fields inherited from class VulkanModuleQueue
logger, queueFamilyIndex, vkQueue -
Constructor Summary
ConstructorsConstructorDescriptionVulkanRenderPresentModuleGraphicsQueue(VulkanModuleLogicalDevice logicalDevice, VulkanRenderModuleSurface surface, int queueIndex, Logger logger) Retrieves a queue from the first family that can present to the given surface. -
Method Summary
Methods inherited from class VulkanModuleQueue
getQueueFamilyIndex, getVkQueue, submit, waitIdle
-
Constructor Details
-
VulkanRenderPresentModuleGraphicsQueue
public VulkanRenderPresentModuleGraphicsQueue(VulkanModuleLogicalDevice logicalDevice, VulkanRenderModuleSurface surface, int queueIndex, Logger logger) Retrieves a queue from the first family that can present to the given surface.- Parameters:
logicalDevice- the device that owns the queuesurface- the surface presentation support is tested againstqueueIndex- the index within the discovered familylogger- the logger to write queue diagnostics to- Throws:
RuntimeException- if no queue family can present to the surface
-