Class VkPresentRegionsKHR

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SWAPCHAINCOUNT, PREGIONS

        The struct member offsets.
    • Constructor Detail

      • VkPresentRegionsKHR

        public VkPresentRegionsKHR​(java.nio.ByteBuffer container)
        Creates a VkPresentRegionsKHR 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()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • swapchainCount

        public int swapchainCount()
        the number of swapchains being presented to by this command.
      • pRegions

        @Nullable
        public VkPresentRegionKHR.Buffer pRegions()
        NULL or a pointer to an array of VkPresentRegionKHR elements with swapchainCount entries. If not NULL, each element of pRegions contains the region that has changed since the last present to the swapchain in the corresponding entry in the VkPresentInfoKHR::pSwapchains array.
      • malloc

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

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

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

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

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

        @Deprecated
        public static VkPresentRegionsKHR mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkPresentRegionsKHR callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

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

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

        public static VkPresentRegionsKHR.Buffer calloc​(int capacity,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new VkPresentRegionsKHR.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().
      • nswapchainCount

        public static int nswapchainCount​(long struct)
        Unsafe version of swapchainCount().
      • 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.
      • nswapchainCount

        public static void nswapchainCount​(long struct,
                                           int value)
        Sets the specified value to the swapchainCount field of the specified struct.