Class VkShadingRatePaletteNV

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SHADINGRATEPALETTEENTRYCOUNT, PSHADINGRATEPALETTEENTRIES

        The struct member offsets.
    • Constructor Detail

      • VkShadingRatePaletteNV

        public VkShadingRatePaletteNV​(java.nio.ByteBuffer container)
        Creates a VkShadingRatePaletteNV 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
      • shadingRatePaletteEntryCount

        public int shadingRatePaletteEntryCount()
        specifies the number of entries in the shading rate image palette.
      • pShadingRatePaletteEntries

        public java.nio.IntBuffer pShadingRatePaletteEntries()
        a pointer to an array of VkShadingRatePaletteEntryNV enums defining the shading rate for each palette entry.
      • malloc

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

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

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

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

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

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

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

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

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

        public static java.nio.IntBuffer npShadingRatePaletteEntries​(long struct)
        Unsafe version of pShadingRatePaletteEntries.
      • nshadingRatePaletteEntryCount

        public static void nshadingRatePaletteEntryCount​(long struct,
                                                         int value)
        Sets the specified value to the shadingRatePaletteEntryCount field of the specified struct.
      • npShadingRatePaletteEntries

        public static void npShadingRatePaletteEntries​(long struct,
                                                       java.nio.IntBuffer value)
        Unsafe version of pShadingRatePaletteEntries.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate