Class SpvcHlslVertexAttributeRemap

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

    public class SpvcHlslVertexAttributeRemap
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Interface which remaps vertex inputs to a fixed semantic name to make linking easier.

    Layout

    
     struct spvc_hlsl_vertex_attribute_remap {
         unsigned int location;
         char const * semantic;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LOCATION, SEMANTIC

        The struct member offsets.
    • Constructor Detail

      • SpvcHlslVertexAttributeRemap

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

        public int location()
        Returns:
        the value of the location field.
      • semantic

        public java.nio.ByteBuffer semantic()
        Returns:
        a ByteBuffer view of the null-terminated string pointed to by the semantic field.
      • semanticString

        public java.lang.String semanticString()
        Returns:
        the null-terminated string pointed to by the semantic field.
      • semantic

        public SpvcHlslVertexAttributeRemap semantic​(java.nio.ByteBuffer value)
        Sets the address of the specified encoded string to the semantic field.
      • set

        public SpvcHlslVertexAttributeRemap set​(int location,
                                                java.nio.ByteBuffer semantic)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static int nlocation​(long struct)
        Unsafe version of location().
      • nsemantic

        public static java.nio.ByteBuffer nsemantic​(long struct)
        Unsafe version of semantic().
      • nsemanticString

        public static java.lang.String nsemanticString​(long struct)
        Unsafe version of semanticString().
      • nlocation

        public static void nlocation​(long struct,
                                     int value)
        Unsafe version of location.
      • nsemantic

        public static void nsemantic​(long struct,
                                     java.nio.ByteBuffer value)
        Unsafe version of semantic.
      • validate

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