Class VkPipelineInfoKHR

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

public class VkPipelineInfoKHR extends Struct<VkPipelineInfoKHR> implements NativeResource

 struct VkPipelineInfoKHR {
     VkStructureType sType;
     void const * pNext;
     VkPipeline pipeline;
 }
  • 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.
    • PIPELINE

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

    • VkPipelineInfoKHR

      public VkPipelineInfoKHR(ByteBuffer container)
      Creates a VkPipelineInfoKHR 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<VkPipelineInfoKHR>
    • sType

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

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

      public long pipeline()
      Returns:
      the value of the pipeline field.
    • sType

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

      public VkPipelineInfoKHR sType$Default()
      Sets the STRUCTURE_TYPE_PIPELINE_INFO_KHR value to the sType field.
    • pNext

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

      public VkPipelineInfoKHR pipeline(long value)
      Sets the specified value to the pipeline field.
    • set

      public VkPipelineInfoKHR set(int sType, long pNext, long pipeline)
      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 VkPipelineInfoKHR malloc()
      Returns a new VkPipelineInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkPipelineInfoKHR.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkPipelineInfoKHR.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().
    • npipeline

      public static long npipeline(long struct)
      Unsafe version of pipeline().
    • 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.
    • npipeline

      public static void npipeline(long struct, long value)
      Unsafe version of pipeline.