Class VkVertexInputAttributeDescription

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

    public class VkVertexInputAttributeDescription
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying vertex input attribute description.
    Valid Usage
    Valid Usage (Implicit)
    • format must be a valid VkFormat value
    See Also

    VkPipelineVertexInputStateCreateInfo

    Member documentation

    • location – the shader binding location number for this attribute.
    • binding – the binding number which this attribute takes its data from.
    • format – the size and type of the vertex attribute data.
    • offset – a byte offset of this attribute relative to the start of an element in the vertex input binding.

    Layout

    
     struct VkVertexInputAttributeDescription {
         uint32_t location;
         uint32_t binding;
         VkFormat format;
         uint32_t offset;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LOCATION, BINDING, FORMAT, OFFSET

        The struct member offsets.
    • Constructor Detail

      • VkVertexInputAttributeDescription

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