Class VkPhysicalDeviceVertexAttributeDivisorFeatures
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceVertexAttributeDivisorFeatures
- All Implemented Interfaces:
Addressable
Represents VkPhysicalDeviceVertexAttributeDivisorFeatures.
Layout
struct VkPhysicalDeviceVertexAttributeDivisorFeatures {
(int) VkStructureType sType;
void* pNext;
(uint32_t) VkBool32 vertexAttributeInstanceRateDivisor;
(uint32_t) VkBool32 vertexAttributeInstanceRateZeroDivisor;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkPhysicalDeviceVertexAttributeDivisorFeatures.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout ofvertexAttributeInstanceRateDivisor.static final MemoryLayoutThe memory layout ofvertexAttributeInstanceRateZeroDivisor.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final longThe byte offset ofvertexAttributeInstanceRateDivisor.static final longThe byte offset ofvertexAttributeInstanceRateZeroDivisor.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofvertexAttributeInstanceRateDivisorof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofvertexAttributeInstanceRateZeroDivisorof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceVertexAttributeDivisorFeatures(MemorySegment segment, long elementCount) CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment allocator and count.asSlice(long index) Creates a slice ofVkPhysicalDeviceVertexAttributeDivisorFeatures.asSlice(long index, long count) Creates a slice ofVkPhysicalDeviceVertexAttributeDivisorFeatures.at(long index, Consumer<VkPhysicalDeviceVertexAttributeDivisorFeatures> func) VisitsVkPhysicalDeviceVertexAttributeDivisorFeaturesbuffer at the given index.Copies from the given source.of(MemorySegment segment) CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.ofNative(MemorySegment segment) CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.ofNative(MemorySegment segment, long count) CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.intReturnsvertexAttributeInstanceRateDivisor.vertexAttributeInstanceRateDivisor(int value) SetsvertexAttributeInstanceRateDivisorwith the given value.static intvertexAttributeInstanceRateDivisor(MemorySegment segment, long index) ReturnsvertexAttributeInstanceRateDivisorat the given index.static voidvertexAttributeInstanceRateDivisor(MemorySegment segment, long index, int value) SetsvertexAttributeInstanceRateDivisorwith the given value at the given index.intvertexAttributeInstanceRateDivisorAt(long index) ReturnsvertexAttributeInstanceRateDivisorat the given index.vertexAttributeInstanceRateDivisorAt(long index, int value) SetsvertexAttributeInstanceRateDivisorwith the given value at the given index.intReturnsvertexAttributeInstanceRateZeroDivisor.vertexAttributeInstanceRateZeroDivisor(int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value.static intvertexAttributeInstanceRateZeroDivisor(MemorySegment segment, long index) ReturnsvertexAttributeInstanceRateZeroDivisorat the given index.static voidvertexAttributeInstanceRateZeroDivisor(MemorySegment segment, long index, int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value at the given index.intvertexAttributeInstanceRateZeroDivisorAt(long index) ReturnsvertexAttributeInstanceRateZeroDivisorat the given index.vertexAttributeInstanceRateZeroDivisorAt(long index, int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkPhysicalDeviceVertexAttributeDivisorFeatures. -
OFFSET_sType
public static final long OFFSET_sTypeThe byte offset ofsType. -
LAYOUT_sType
The memory layout ofsType. -
VH_sType
-
OFFSET_pNext
public static final long OFFSET_pNextThe byte offset ofpNext. -
LAYOUT_pNext
The memory layout ofpNext. -
VH_pNext
-
OFFSET_vertexAttributeInstanceRateDivisor
public static final long OFFSET_vertexAttributeInstanceRateDivisorThe byte offset ofvertexAttributeInstanceRateDivisor. -
LAYOUT_vertexAttributeInstanceRateDivisor
The memory layout ofvertexAttributeInstanceRateDivisor. -
VH_vertexAttributeInstanceRateDivisor
-
OFFSET_vertexAttributeInstanceRateZeroDivisor
public static final long OFFSET_vertexAttributeInstanceRateZeroDivisorThe byte offset ofvertexAttributeInstanceRateZeroDivisor. -
LAYOUT_vertexAttributeInstanceRateZeroDivisor
The memory layout ofvertexAttributeInstanceRateZeroDivisor. -
VH_vertexAttributeInstanceRateZeroDivisor
-
-
Constructor Details
-
VkPhysicalDeviceVertexAttributeDivisorFeatures
CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
public static VkPhysicalDeviceVertexAttributeDivisorFeatures ofNative(MemorySegment segment, long count) Creates
VkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPhysicalDeviceVertexAttributeDivisorFeatures
-
alloc
public static VkPhysicalDeviceVertexAttributeDivisorFeatures alloc(SegmentAllocator allocator, long count) Allocates aVkPhysicalDeviceVertexAttributeDivisorFeatureswith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkPhysicalDeviceVertexAttributeDivisorFeatures
-
copyFrom
public VkPhysicalDeviceVertexAttributeDivisorFeatures copyFrom(VkPhysicalDeviceVertexAttributeDivisorFeatures src) Copies from the given source.- Parameters:
src- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
sType
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
vertexAttributeInstanceRateDivisor
ReturnsvertexAttributeInstanceRateDivisorat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexAttributeInstanceRateDivisorat the given index
-
vertexAttributeInstanceRateDivisor
public int vertexAttributeInstanceRateDivisor()ReturnsvertexAttributeInstanceRateDivisor.- Returns:
vertexAttributeInstanceRateDivisor
-
vertexAttributeInstanceRateDivisor
SetsvertexAttributeInstanceRateDivisorwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexAttributeInstanceRateDivisor
SetsvertexAttributeInstanceRateDivisorwith the given value.- Parameters:
value- the value- Returns:
this
-
vertexAttributeInstanceRateZeroDivisor
ReturnsvertexAttributeInstanceRateZeroDivisorat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexAttributeInstanceRateZeroDivisorat the given index
-
vertexAttributeInstanceRateZeroDivisor
public int vertexAttributeInstanceRateZeroDivisor()ReturnsvertexAttributeInstanceRateZeroDivisor.- Returns:
vertexAttributeInstanceRateZeroDivisor
-
vertexAttributeInstanceRateZeroDivisor
public static void vertexAttributeInstanceRateZeroDivisor(MemorySegment segment, long index, int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexAttributeInstanceRateZeroDivisor
public VkPhysicalDeviceVertexAttributeDivisorFeatures vertexAttributeInstanceRateZeroDivisor(int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkPhysicalDeviceVertexAttributeDivisorFeatures.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkPhysicalDeviceVertexAttributeDivisorFeatures
-
asSlice
Creates a slice ofVkPhysicalDeviceVertexAttributeDivisorFeatures.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkPhysicalDeviceVertexAttributeDivisorFeatures
-
at
public VkPhysicalDeviceVertexAttributeDivisorFeatures at(long index, Consumer<VkPhysicalDeviceVertexAttributeDivisorFeatures> func) VisitsVkPhysicalDeviceVertexAttributeDivisorFeaturesbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexAttributeInstanceRateDivisorAt
public int vertexAttributeInstanceRateDivisorAt(long index) ReturnsvertexAttributeInstanceRateDivisorat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexAttributeInstanceRateDivisorat the given index
-
vertexAttributeInstanceRateDivisorAt
public VkPhysicalDeviceVertexAttributeDivisorFeatures vertexAttributeInstanceRateDivisorAt(long index, int value) SetsvertexAttributeInstanceRateDivisorwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexAttributeInstanceRateZeroDivisorAt
public int vertexAttributeInstanceRateZeroDivisorAt(long index) ReturnsvertexAttributeInstanceRateZeroDivisorat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexAttributeInstanceRateZeroDivisorat the given index
-
vertexAttributeInstanceRateZeroDivisorAt
public VkPhysicalDeviceVertexAttributeDivisorFeatures vertexAttributeInstanceRateZeroDivisorAt(long index, int value) SetsvertexAttributeInstanceRateZeroDivisorwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-