Class VkSurfaceCapabilities2EXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkSurfaceCapabilities2EXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing capabilities of a surface.
    Valid Usage
    Valid Usage (Implicit)
    See Also

    VkExtent2D, GetPhysicalDeviceSurfaceCapabilities2EXT

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • supportedSurfaceCounters – a bitmask of VkSurfaceCounterFlagBitsEXT indicating the supported surface counter types.

    Layout

    
     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, MINIMAGECOUNT, MAXIMAGECOUNT, CURRENTEXTENT, MINIMAGEEXTENT, MAXIMAGEEXTENT, MAXIMAGEARRAYLAYERS, SUPPORTEDTRANSFORMS, CURRENTTRANSFORM, SUPPORTEDCOMPOSITEALPHA, SUPPORTEDUSAGEFLAGS, SUPPORTEDSURFACECOUNTERS

        The struct member offsets.
    • Constructor Detail

      • VkSurfaceCapabilities2EXT

        public VkSurfaceCapabilities2EXT​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • 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.
      • mallocStack

        public static VkSurfaceCapabilities2EXT mallocStack()
        Returns a new VkSurfaceCapabilities2EXT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkSurfaceCapabilities2EXT callocStack()
        Returns a new VkSurfaceCapabilities2EXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkSurfaceCapabilities2EXT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkSurfaceCapabilities2EXT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkSurfaceCapabilities2EXT callocStack​(org.lwjgl.system.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
      • callocStack

        public static VkSurfaceCapabilities2EXT.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new VkSurfaceCapabilities2EXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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().
      • 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.