Class SpvcSpecializationConstant

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SpvcSpecializationConstant>
org.lwjgl.util.spvc.SpvcSpecializationConstant
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class SpvcSpecializationConstant extends org.lwjgl.system.Struct<SpvcSpecializationConstant> implements org.lwjgl.system.NativeResource

Layout


 struct spvc_specialization_constant {
     spvc_constant_id id();
     unsigned int constant_id();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ID
      The struct member offsets.
    • CONSTANT_ID

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

    • SpvcSpecializationConstant

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

      public int id()
      the ID of the specialization constant
    • constant_id

      public int constant_id()
      the constant ID of the constant, used in Vulkan during pipeline creation
    • id

      public SpvcSpecializationConstant id(int value)
      Sets the specified value to the id() field.
    • constant_id

      public SpvcSpecializationConstant constant_id(int value)
      Sets the specified value to the constant_id() field.
    • set

      public SpvcSpecializationConstant set(int id, int constant_id)
      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 SpvcSpecializationConstant malloc()
      Returns a new SpvcSpecializationConstant instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nid(long struct)
      Unsafe version of id().
    • nconstant_id

      public static int nconstant_id(long struct)
      Unsafe version of constant_id().
    • nid

      public static void nid(long struct, int value)
      Unsafe version of id.
    • nconstant_id

      public static void nconstant_id(long struct, int value)
      Unsafe version of constant_id.