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.

  • 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 queue
      surface - the surface presentation support is tested against
      queueIndex - the index within the discovered family
      logger - the logger to write queue diagnostics to
      Throws:
      RuntimeException - if no queue family can present to the surface