Class RenderVulkanModuleGraphicsQueue.RenderVulkanPresentModuleGraphicsQueue
java.lang.Object
io.codetoil.curved_spacetime.vulkan.VulkanModuleQueue
io.codetoil.curved_spacetime.render.vulkan.RenderVulkanModuleGraphicsQueue
io.codetoil.curved_spacetime.render.vulkan.RenderVulkanModuleGraphicsQueue.RenderVulkanPresentModuleGraphicsQueue
- Enclosing class:
RenderVulkanModuleGraphicsQueue
public static class RenderVulkanModuleGraphicsQueue.RenderVulkanPresentModuleGraphicsQueue
extends RenderVulkanModuleGraphicsQueue
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 RenderVulkanModuleGraphicsQueue
RenderVulkanModuleGraphicsQueue.RenderVulkanPresentModuleGraphicsQueue -
Field Summary
Fields inherited from class VulkanModuleQueue
logger, queueFamilyIndex, vkQueue -
Constructor Summary
ConstructorsConstructorDescriptionRenderVulkanPresentModuleGraphicsQueue(VulkanModuleLogicalDevice logicalDevice, RenderVulkanModuleSurface 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
-
RenderVulkanPresentModuleGraphicsQueue
public RenderVulkanPresentModuleGraphicsQueue(VulkanModuleLogicalDevice logicalDevice, RenderVulkanModuleSurface 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
-