Class VmaAllocatorInfo.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vma.VmaAllocatorInfo
overrungl.vma.VmaAllocatorInfo.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VmaAllocatorInfo
A buffer of
VmaAllocatorInfo
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vma.VmaAllocatorInfo
VmaAllocatorInfo.Buffer
-
Field Summary
Fields inherited from class overrungl.vma.VmaAllocatorInfo
LAYOUT, LAYOUT_device, LAYOUT_instance, LAYOUT_physicalDevice, OFFSET_device, OFFSET_instance, OFFSET_physicalDevice, VH_device, VH_instance, VH_physicalDevice
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVmaAllocatorInfo.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVmaAllocatorInfo
.asSlice
(long index, long count) Creates a slice ofVmaAllocatorInfo
.deviceAt
(long index) Returnsdevice
at the given index.deviceAt
(long index, MemorySegment value) Setsdevice
with the given value at the given index.long
Estimates the element count of this group type buffer.instanceAt
(long index) Returnsinstance
at the given index.instanceAt
(long index, MemorySegment value) Setsinstance
with the given value at the given index.physicalDeviceAt
(long index) ReturnsphysicalDevice
at the given index.physicalDeviceAt
(long index, MemorySegment value) SetsphysicalDevice
with the given value at the given index.Methods inherited from class overrungl.vma.VmaAllocatorInfo
alloc, alloc, allocInit, allocInit, allocInit, asBuffer, copyFrom, device, device, device, device, instance, instance, instance, instance, of, ofNative, ofNative, physicalDevice, physicalDevice, physicalDevice, physicalDevice
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVmaAllocatorInfo.Buffer
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count
-
-
Method Details
-
estimateCount
public long estimateCount()Description copied from class:GroupType
Estimates the element count of this group type buffer.- Overrides:
estimateCount
in classGroupType
- Returns:
- the estimated element count of the group type buffer
-
asSlice
Creates a slice ofVmaAllocatorInfo
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VmaAllocatorInfo
-
asSlice
Creates a slice ofVmaAllocatorInfo
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VmaAllocatorInfo
-
instanceAt
Returnsinstance
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
instance
at the given index
-
instanceAt
Setsinstance
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
physicalDeviceAt
ReturnsphysicalDevice
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
physicalDevice
at the given index
-
physicalDeviceAt
SetsphysicalDevice
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceAt
Returnsdevice
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
device
at the given index
-
deviceAt
Setsdevice
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-