Class VkShadingRatePaletteNV

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

    public class VkShadingRatePaletteNV
    extends Struct
    implements NativeResource
    Structure specifying a single shading rate palette.
    Valid Usage
    Valid Usage (Implicit)
    • pShadingRatePaletteEntries must be a valid pointer to an array of shadingRatePaletteEntryCount valid VkShadingRatePaletteEntryNV values
    • shadingRatePaletteEntryCount must be greater than 0
    See Also

    VkPipelineViewportShadingRateImageStateCreateInfoNV, CmdSetViewportShadingRatePaletteNV

    Member documentation

    • shadingRatePaletteEntryCount – specifies the number of entries in the shading rate image palette.
    • pShadingRatePaletteEntries – a pointer to an array of VkShadingRatePaletteEntryNV enums defining the shading rate for each palette entry.

    Layout

    
     struct VkShadingRatePaletteNV {
         uint32_t shadingRatePaletteEntryCount;
         VkShadingRatePaletteEntryNV const * pShadingRatePaletteEntries;
     }
    • 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • shadingRatePaletteEntryCount

        public int shadingRatePaletteEntryCount()
        Returns the value of the shadingRatePaletteEntryCount field.
      • pShadingRatePaletteEntries

        public java.nio.IntBuffer pShadingRatePaletteEntries()
        Returns a IntBuffer view of the data pointed to by the pShadingRatePaletteEntries field.
      • pShadingRatePaletteEntries

        public VkShadingRatePaletteNV pShadingRatePaletteEntries​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pShadingRatePaletteEntries field.
      • 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​(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.
      • callocStack

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

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

        public static VkShadingRatePaletteNV callocStack​(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
      • 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
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array