Class VkPipelineBinaryDataKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineBinaryDataKHR>
org.lwjgl.vulkan.VkPipelineBinaryDataKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPipelineBinaryDataKHR extends org.lwjgl.system.Struct<VkPipelineBinaryDataKHR> implements org.lwjgl.system.NativeResource
Structure specifying data and length of a pipeline binary.
Valid Usage (Implicit)
  • pData must be a valid pointer to an array of dataSize bytes
  • dataSize must be greater than 0
See Also

VkPipelineBinaryKeysAndDataKHR

Layout


 struct VkPipelineBinaryDataKHR {
     size_t dataSize();
     void * pData();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DATASIZE
      The struct member offsets.
    • PDATA

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

    • VkPipelineBinaryDataKHR

      public VkPipelineBinaryDataKHR(ByteBuffer container)
      Creates a VkPipelineBinaryDataKHR 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkPipelineBinaryDataKHR>
    • dataSize

      public long dataSize()
      the size of the pData buffer in bytes.
    • pData

      public ByteBuffer pData()
      a pointer to a buffer of size bytes that contains pipeline binary data obtained from vkGetPipelineBinaryDataKHR.
    • pData

      public VkPipelineBinaryDataKHR pData(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pData() field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long ndataSize(long struct)
      Unsafe version of dataSize().
    • npData

      public static ByteBuffer npData(long struct)
      Unsafe version of pData.
    • ndataSize

      public static void ndataSize(long struct, long value)
      Sets the specified value to the dataSize field of the specified struct.
    • npData

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

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