Class SpvcHlslRootConstants

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

    public class SpvcHlslRootConstants
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Specifying a root constant (d3d12) or push constant range (vulkan).

    start and end denotes the range of the root constant in bytes. Both values need to be multiple of 4.

    Layout

    
     struct spvc_hlsl_root_constants {
         unsigned int start;
         unsigned int end;
         unsigned int binding;
         unsigned int space;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • START, END, BINDING, SPACE

        The struct member offsets.
    • Constructor Detail

      • SpvcHlslRootConstants

        public SpvcHlslRootConstants​(java.nio.ByteBuffer container)
        Creates a SpvcHlslRootConstants 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
      • start

        public int start()
        Returns:
        the value of the start field.
      • end

        public int end()
        Returns:
        the value of the end field.
      • binding

        public int binding()
        Returns:
        the value of the binding field.
      • space

        public int space()
        Returns:
        the value of the space field.
      • binding

        public SpvcHlslRootConstants binding​(int value)
        Sets the specified value to the binding field.
      • set

        public SpvcHlslRootConstants set​(int start,
                                         int end,
                                         int binding,
                                         int space)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nstart​(long struct)
        Unsafe version of start().
      • nend

        public static int nend​(long struct)
        Unsafe version of end().
      • nbinding

        public static int nbinding​(long struct)
        Unsafe version of binding().
      • nspace

        public static int nspace​(long struct)
        Unsafe version of space().
      • nstart

        public static void nstart​(long struct,
                                  int value)
        Unsafe version of start.
      • nend

        public static void nend​(long struct,
                                int value)
        Unsafe version of end.
      • nbinding

        public static void nbinding​(long struct,
                                    int value)
        Unsafe version of binding.
      • nspace

        public static void nspace​(long struct,
                                  int value)
        Unsafe version of space.