Class VkSurfaceCapabilities2EXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkSurfaceCapabilities2EXT extends Struct<VkSurfaceCapabilities2EXT> implements NativeResource

 struct VkSurfaceCapabilities2EXT {
     VkStructureType sType;
     void * pNext;
     uint32_t minImageCount;
     uint32_t maxImageCount;
     VkExtent2D currentExtent;
     VkExtent2D minImageExtent;
     VkExtent2D maxImageExtent;
     uint32_t maxImageArrayLayers;
     VkSurfaceTransformFlagsKHR supportedTransforms;
     VkSurfaceTransformFlagBitsKHR currentTransform;
     VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
     VkImageUsageFlags supportedUsageFlags;
     VkSurfaceCounterFlagsEXT supportedSurfaceCounters;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • MINIMAGECOUNT

      public static final int MINIMAGECOUNT
      The struct member offsets.
    • MAXIMAGECOUNT

      public static final int MAXIMAGECOUNT
      The struct member offsets.
    • CURRENTEXTENT

      public static final int CURRENTEXTENT
      The struct member offsets.
    • MINIMAGEEXTENT

      public static final int MINIMAGEEXTENT
      The struct member offsets.
    • MAXIMAGEEXTENT

      public static final int MAXIMAGEEXTENT
      The struct member offsets.
    • MAXIMAGEARRAYLAYERS

      public static final int MAXIMAGEARRAYLAYERS
      The struct member offsets.
    • SUPPORTEDTRANSFORMS

      public static final int SUPPORTEDTRANSFORMS
      The struct member offsets.
    • CURRENTTRANSFORM

      public static final int CURRENTTRANSFORM
      The struct member offsets.
    • SUPPORTEDCOMPOSITEALPHA

      public static final int SUPPORTEDCOMPOSITEALPHA
      The struct member offsets.
    • SUPPORTEDUSAGEFLAGS

      public static final int SUPPORTEDUSAGEFLAGS
      The struct member offsets.
    • SUPPORTEDSURFACECOUNTERS

      public static final int SUPPORTEDSURFACECOUNTERS
      The struct member offsets.
  • Constructor Details

    • VkSurfaceCapabilities2EXT

      public VkSurfaceCapabilities2EXT(ByteBuffer container)
      Creates a VkSurfaceCapabilities2EXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkSurfaceCapabilities2EXT>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • minImageCount

      public int minImageCount()
      Returns:
      the value of the minImageCount field.
    • maxImageCount

      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

      public int maxImageArrayLayers()
      Returns:
      the value of the maxImageArrayLayers field.
    • supportedTransforms

      public int supportedTransforms()
      Returns:
      the value of the supportedTransforms field.
    • currentTransform

      public int currentTransform()
      Returns:
      the value of the currentTransform field.
    • supportedCompositeAlpha

      public int supportedCompositeAlpha()
      Returns:
      the value of the supportedCompositeAlpha field.
    • supportedUsageFlags

      public int supportedUsageFlags()
      Returns:
      the value of the supportedUsageFlags field.
    • supportedSurfaceCounters

      public int supportedSurfaceCounters()
      Returns:
      the value of the supportedSurfaceCounters field.
    • sType

      public VkSurfaceCapabilities2EXT sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkSurfaceCapabilities2EXT sType$Default()
      Sets the STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT value to the sType field.
    • pNext

      public VkSurfaceCapabilities2EXT pNext(long value)
      Sets the specified value to the pNext field.
    • set

      public VkSurfaceCapabilities2EXT set(int sType, long pNext)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkSurfaceCapabilities2EXT malloc()
      Returns a new VkSurfaceCapabilities2EXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkSurfaceCapabilities2EXT calloc()
      Returns a new VkSurfaceCapabilities2EXT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkSurfaceCapabilities2EXT create()
      Returns a new VkSurfaceCapabilities2EXT instance allocated with BufferUtils.
    • create

      public static VkSurfaceCapabilities2EXT create(long address)
      Returns a new VkSurfaceCapabilities2EXT instance for the specified memory address.
    • createSafe

      public static @Nullable VkSurfaceCapabilities2EXT createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkSurfaceCapabilities2EXT.Buffer malloc(int capacity)
      Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkSurfaceCapabilities2EXT.Buffer calloc(int capacity)
      Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSurfaceCapabilities2EXT.Buffer create(int capacity)
      Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSurfaceCapabilities2EXT.Buffer create(long address, int capacity)
      Create a VkSurfaceCapabilities2EXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkSurfaceCapabilities2EXT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkSurfaceCapabilities2EXT malloc(MemoryStack stack)
      Returns a new VkSurfaceCapabilities2EXT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkSurfaceCapabilities2EXT calloc(MemoryStack stack)
      Returns a new VkSurfaceCapabilities2EXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkSurfaceCapabilities2EXT.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkSurfaceCapabilities2EXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nminImageCount

      public static int nminImageCount(long struct)
      Unsafe version of minImageCount().
    • nmaxImageCount

      public static int nmaxImageCount(long struct)
      Unsafe version of maxImageCount().
    • ncurrentExtent

      public static VkExtent2D ncurrentExtent(long struct)
      Unsafe version of currentExtent().
    • nminImageExtent

      public static VkExtent2D nminImageExtent(long struct)
      Unsafe version of minImageExtent().
    • nmaxImageExtent

      public static VkExtent2D nmaxImageExtent(long struct)
      Unsafe version of maxImageExtent().
    • nmaxImageArrayLayers

      public static int nmaxImageArrayLayers(long struct)
      Unsafe version of maxImageArrayLayers().
    • nsupportedTransforms

      public static int nsupportedTransforms(long struct)
      Unsafe version of supportedTransforms().
    • ncurrentTransform

      public static int ncurrentTransform(long struct)
      Unsafe version of currentTransform().
    • nsupportedCompositeAlpha

      public static int nsupportedCompositeAlpha(long struct)
      Unsafe version of supportedCompositeAlpha().
    • nsupportedUsageFlags

      public static int nsupportedUsageFlags(long struct)
      Unsafe version of supportedUsageFlags().
    • nsupportedSurfaceCounters

      public static int nsupportedSurfaceCounters(long struct)
      Unsafe version of supportedSurfaceCounters().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.