Class VulkanRenderModuleGraphicsQueue

java.lang.Object
io.codetoil.curved_spacetime.vulkan.VulkanModuleQueue
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleGraphicsQueue
Direct Known Subclasses:
VulkanRenderModuleGraphicsQueue.VulkanRenderPresentModuleGraphicsQueue

public class VulkanRenderModuleGraphicsQueue extends VulkanModuleQueue
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.

  • 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 queue
      queueFamilyIndex - the family to take the queue from
      queueIndex - the index within that family
      logger - 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 queue
      queueIndex - the index within the discovered family
      logger - the logger to write queue diagnostics to
      Throws:
      RuntimeException - if the device advertises no graphics-capable queue family