Class VkPhysicalDeviceVertexAttributeDivisorFeatures

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceVertexAttributeDivisorFeatures
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
VkPhysicalDeviceVertexAttributeDivisorFeatures.Buffer

public sealed class VkPhysicalDeviceVertexAttributeDivisorFeatures extends GroupType permits VkPhysicalDeviceVertexAttributeDivisorFeatures.Buffer

Layout

struct VkPhysicalDeviceVertexAttributeDivisorFeatures {
    (int) VkStructureType sType;
    void* pNext;
    (uint32_t) VkBool32 vertexAttributeInstanceRateDivisor;
    (uint32_t) VkBool32 vertexAttributeInstanceRateZeroDivisor;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPhysicalDeviceVertexAttributeDivisorFeatures.
    • OFFSET_sType

      public static final long OFFSET_sType
      The byte offset of sType.
    • LAYOUT_sType

      public static final MemoryLayout LAYOUT_sType
      The memory layout of sType.
    • VH_sType

      public static final VarHandle VH_sType
      The VarHandle of sType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pNext

      public static final long OFFSET_pNext
      The byte offset of pNext.
    • LAYOUT_pNext

      public static final MemoryLayout LAYOUT_pNext
      The memory layout of pNext.
    • VH_pNext

      public static final VarHandle VH_pNext
      The VarHandle of pNext of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexAttributeInstanceRateDivisor

      public static final long OFFSET_vertexAttributeInstanceRateDivisor
      The byte offset of vertexAttributeInstanceRateDivisor.
    • LAYOUT_vertexAttributeInstanceRateDivisor

      public static final MemoryLayout LAYOUT_vertexAttributeInstanceRateDivisor
      The memory layout of vertexAttributeInstanceRateDivisor.
    • VH_vertexAttributeInstanceRateDivisor

      public static final VarHandle VH_vertexAttributeInstanceRateDivisor
      The VarHandle of vertexAttributeInstanceRateDivisor of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexAttributeInstanceRateZeroDivisor

      public static final long OFFSET_vertexAttributeInstanceRateZeroDivisor
      The byte offset of vertexAttributeInstanceRateZeroDivisor.
    • LAYOUT_vertexAttributeInstanceRateZeroDivisor

      public static final MemoryLayout LAYOUT_vertexAttributeInstanceRateZeroDivisor
      The memory layout of vertexAttributeInstanceRateZeroDivisor.
    • VH_vertexAttributeInstanceRateZeroDivisor

      public static final VarHandle VH_vertexAttributeInstanceRateZeroDivisor
      The VarHandle of vertexAttributeInstanceRateZeroDivisor of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • VkPhysicalDeviceVertexAttributeDivisorFeatures

      public VkPhysicalDeviceVertexAttributeDivisorFeatures(MemorySegment segment)
      Creates VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      Creates VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      Creates VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPhysicalDeviceVertexAttributeDivisorFeatures.Buffer ofNative(MemorySegment segment, long count)

      Creates VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      Allocates a VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPhysicalDeviceVertexAttributeDivisorFeatures
    • alloc

      public static VkPhysicalDeviceVertexAttributeDivisorFeatures.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkPhysicalDeviceVertexAttributeDivisorFeatures with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkPhysicalDeviceVertexAttributeDivisorFeatures
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • asBuffer

      Converts this instance to a buffer.
      Returns:
      the buffer
    • sType

      public static int sType(MemorySegment segment, long index)
      Returns sType at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      sType at the given index
    • sType

      public int sType()
      Returns sType.
      Returns:
      sType
    • sType

      public static void sType(MemorySegment segment, long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • sType

      Sets sType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pNext

      public static MemorySegment pNext(MemorySegment segment, long index)
      Returns pNext at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNext

      public MemorySegment pNext()
      Returns pNext.
      Returns:
      pNext
    • pNext

      public static void pNext(MemorySegment segment, long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • pNext

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexAttributeInstanceRateDivisor

      public static int vertexAttributeInstanceRateDivisor(MemorySegment segment, long index)
      Returns vertexAttributeInstanceRateDivisor at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      vertexAttributeInstanceRateDivisor at the given index
    • vertexAttributeInstanceRateDivisor

      public int vertexAttributeInstanceRateDivisor()
      Returns vertexAttributeInstanceRateDivisor.
      Returns:
      vertexAttributeInstanceRateDivisor
    • vertexAttributeInstanceRateDivisor

      public static void vertexAttributeInstanceRateDivisor(MemorySegment segment, long index, int value)
      Sets vertexAttributeInstanceRateDivisor with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • vertexAttributeInstanceRateDivisor

      public VkPhysicalDeviceVertexAttributeDivisorFeatures vertexAttributeInstanceRateDivisor(int value)
      Sets vertexAttributeInstanceRateDivisor with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexAttributeInstanceRateZeroDivisor

      public static int vertexAttributeInstanceRateZeroDivisor(MemorySegment segment, long index)
      Returns vertexAttributeInstanceRateZeroDivisor at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      vertexAttributeInstanceRateZeroDivisor at the given index
    • vertexAttributeInstanceRateZeroDivisor

      public int vertexAttributeInstanceRateZeroDivisor()
      Returns vertexAttributeInstanceRateZeroDivisor.
      Returns:
      vertexAttributeInstanceRateZeroDivisor
    • vertexAttributeInstanceRateZeroDivisor

      public static void vertexAttributeInstanceRateZeroDivisor(MemorySegment segment, long index, int value)
      Sets vertexAttributeInstanceRateZeroDivisor with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • vertexAttributeInstanceRateZeroDivisor

      public VkPhysicalDeviceVertexAttributeDivisorFeatures vertexAttributeInstanceRateZeroDivisor(int value)
      Sets vertexAttributeInstanceRateZeroDivisor with the given value.
      Parameters:
      value - the value
      Returns:
      this