Class SpvcSpecializationConstant

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

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

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ID, CONSTANT_ID

        The struct member offsets.
    • Constructor Detail

      • SpvcSpecializationConstant

        public SpvcSpecializationConstant​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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
      • 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.
      • 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
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.