Class VkPipelineDynamicStateCreateInfo

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

    public class VkPipelineDynamicStateCreateInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created pipeline dynamic state.
    Valid Usage
    • Each element of pDynamicStates must be unique
    Valid Usage (Implicit)
    See Also

    VkGraphicsPipelineCreateInfo

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • dynamicStateCount – the number of elements in the pDynamicStates array.
    • pDynamicStates – an array of VkDynamicState values specifying which pieces of pipeline state will use the values from dynamic state commands rather than from pipeline state creation info.

    Layout

    
     struct VkPipelineDynamicStateCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkPipelineDynamicStateCreateFlags flags;
         uint32_t dynamicStateCount;
         VkDynamicState const * pDynamicStates;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, DYNAMICSTATECOUNT, PDYNAMICSTATES

        The struct member offsets.
    • Constructor Detail

      • VkPipelineDynamicStateCreateInfo

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

        public int flags()
        Returns the value of the flags field.
      • dynamicStateCount

        public int dynamicStateCount()
        Returns the value of the dynamicStateCount field.
      • pDynamicStates

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

        public VkPipelineDynamicStateCreateInfo pDynamicStates​(@Nullable
                                                               java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pDynamicStates field.
      • set

        public VkPipelineDynamicStateCreateInfo set​(int sType,
                                                    long pNext,
                                                    int flags,
                                                    @Nullable
                                                    java.nio.IntBuffer pDynamicStates)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static VkPipelineDynamicStateCreateInfo callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkPipelineDynamicStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • ndynamicStateCount

        public static int ndynamicStateCount​(long struct)
        Unsafe version of dynamicStateCount().
      • npDynamicStates

        @Nullable
        public static java.nio.IntBuffer npDynamicStates​(long struct)
        Unsafe version of pDynamicStates.
      • 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.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • ndynamicStateCount

        public static void ndynamicStateCount​(long struct,
                                              int value)
        Sets the specified value to the dynamicStateCount field of the specified struct.
      • npDynamicStates

        public static void npDynamicStates​(long struct,
                                           @Nullable
                                           java.nio.IntBuffer value)
        Unsafe version of pDynamicStates.
      • 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