Class VkSurfaceCapabilitiesKHR.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkSurfaceCapabilitiesKHR>, NativeResource, Pointer
Enclosing class:
VkSurfaceCapabilitiesKHR

public static class VkSurfaceCapabilitiesKHR.Buffer extends StructBuffer<VkSurfaceCapabilitiesKHR, VkSurfaceCapabilitiesKHR.Buffer> implements NativeResource
An array of VkSurfaceCapabilitiesKHR structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkSurfaceCapabilitiesKHR.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkSurfaceCapabilitiesKHR.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • minImageCount

      @NativeType("uint32_t") public int minImageCount()
      Returns:
      the value of the minImageCount field.
    • maxImageCount

      @NativeType("uint32_t") public int maxImageCount()
      Returns:
      the value of the maxImageCount field.
    • currentExtent

      public VkExtent2D currentExtent()
      Returns:
      a VkExtent2D view of the currentExtent field.
    • minImageExtent

      public VkExtent2D minImageExtent()
      Returns:
      a VkExtent2D view of the minImageExtent field.
    • maxImageExtent

      public VkExtent2D maxImageExtent()
      Returns:
      a VkExtent2D view of the maxImageExtent field.
    • maxImageArrayLayers

      @NativeType("uint32_t") public int maxImageArrayLayers()
      Returns:
      the value of the maxImageArrayLayers field.
    • supportedTransforms

      @NativeType("VkSurfaceTransformFlagsKHR") public int supportedTransforms()
      Returns:
      the value of the supportedTransforms field.
    • currentTransform

      @NativeType("VkSurfaceTransformFlagBitsKHR") public int currentTransform()
      Returns:
      the value of the currentTransform field.
    • supportedCompositeAlpha

      @NativeType("VkCompositeAlphaFlagsKHR") public int supportedCompositeAlpha()
      Returns:
      the value of the supportedCompositeAlpha field.
    • supportedUsageFlags

      @NativeType("VkImageUsageFlags") public int supportedUsageFlags()
      Returns:
      the value of the supportedUsageFlags field.