Class VkVertexInputBindingDescription

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

    public class VkVertexInputBindingDescription
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying vertex input binding description.
    Valid Usage
    Valid Usage (Implicit)
    • inputRate must be a valid VkVertexInputRate value
    See Also

    VkPipelineVertexInputStateCreateInfo

    Member documentation

    • binding – the binding number that this structure describes.
    • stride – the distance in bytes between two consecutive elements within the buffer.
    • inputRate – a VkVertexInputRate value specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.

    Layout

    
     struct VkVertexInputBindingDescription {
         uint32_t binding;
         uint32_t stride;
         VkVertexInputRate inputRate;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BINDING, STRIDE, INPUTRATE

        The struct member offsets.
    • Constructor Detail

      • VkVertexInputBindingDescription

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