Class VkPushConstantsInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkPushConstantsInfoKHR

public class VkPushConstantsInfo extends Struct<VkPushConstantsInfo> implements NativeResource

 struct VkPushConstantsInfo {
     VkStructureType sType;
     void const * pNext;
     VkPipelineLayout layout;
     VkShaderStageFlags stageFlags;
     uint32_t offset;
     uint32_t size;
     void const * pValues;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • LAYOUT

      public static final int LAYOUT
      The struct member offsets.
    • STAGEFLAGS

      public static final int STAGEFLAGS
      The struct member offsets.
    • OFFSET

      public static final int OFFSET
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • PVALUES

      public static final int PVALUES
      The struct member offsets.
  • Constructor Details

    • VkPushConstantsInfo

      public VkPushConstantsInfo(ByteBuffer container)
      Creates a VkPushConstantsInfo 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkPushConstantsInfo>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • layout

      public long layout()
      Returns:
      the value of the layout field.
    • stageFlags

      public int stageFlags()
      Returns:
      the value of the stageFlags field.
    • offset

      public int offset()
      Returns:
      the value of the offset field.
    • size

      public int size()
      Returns:
      the value of the size field.
    • pValues

      public ByteBuffer pValues()
      Returns:
      a ByteBuffer view of the data pointed to by the pValues field.
    • sType

      public VkPushConstantsInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkPushConstantsInfo sType$Default()
      Sets the STRUCTURE_TYPE_PUSH_CONSTANTS_INFO value to the sType field.
    • pNext

      public VkPushConstantsInfo pNext(long value)
      Sets the specified value to the pNext field.
    • pNext

      Prepends the specified VkPipelineLayoutCreateInfo value to the pNext chain.
    • layout

      public VkPushConstantsInfo layout(long value)
      Sets the specified value to the layout field.
    • stageFlags

      public VkPushConstantsInfo stageFlags(int value)
      Sets the specified value to the stageFlags field.
    • offset

      public VkPushConstantsInfo offset(int value)
      Sets the specified value to the offset field.
    • pValues

      public VkPushConstantsInfo pValues(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pValues field.
    • set

      public VkPushConstantsInfo set(int sType, long pNext, long layout, int stageFlags, int offset, ByteBuffer pValues)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

      public static VkPushConstantsInfo.Buffer malloc(int capacity)
      Returns a new VkPushConstantsInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkPushConstantsInfo.Buffer calloc(int capacity)
      Returns a new VkPushConstantsInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkPushConstantsInfo.Buffer create(int capacity)
      Returns a new VkPushConstantsInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkPushConstantsInfo.Buffer create(long address, int capacity)
      Create a VkPushConstantsInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkPushConstantsInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

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

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

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

      public static VkPushConstantsInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkPushConstantsInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      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().
    • nlayout

      public static long nlayout(long struct)
      Unsafe version of layout().
    • nstageFlags

      public static int nstageFlags(long struct)
      Unsafe version of stageFlags().
    • noffset

      public static int noffset(long struct)
      Unsafe version of offset().
    • nsize

      public static int nsize(long struct)
      Unsafe version of size().
    • npValues

      public static ByteBuffer npValues(long struct)
      Unsafe version of pValues.
    • 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.
    • nlayout

      public static void nlayout(long struct, long value)
      Unsafe version of layout.
    • nstageFlags

      public static void nstageFlags(long struct, int value)
      Unsafe version of stageFlags.
    • noffset

      public static void noffset(long struct, int value)
      Unsafe version of offset.
    • nsize

      public static void nsize(long struct, int value)
      Sets the specified value to the size field of the specified struct.
    • npValues

      public static void npValues(long struct, ByteBuffer value)
      Unsafe version of pValues.
    • validate

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