Class VmaAllocationInfo.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vma.VmaAllocationInfo
overrungl.vma.VmaAllocationInfo.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VmaAllocationInfo
A buffer of
VmaAllocationInfo
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vma.VmaAllocationInfo
VmaAllocationInfo.Buffer
-
Field Summary
Fields inherited from class overrungl.vma.VmaAllocationInfo
LAYOUT, LAYOUT_deviceMemory, LAYOUT_memoryType, LAYOUT_offset, LAYOUT_pMappedData, LAYOUT_pName, LAYOUT_pUserData, LAYOUT_size, OFFSET_deviceMemory, OFFSET_memoryType, OFFSET_offset, OFFSET_pMappedData, OFFSET_pName, OFFSET_pUserData, OFFSET_size, VH_deviceMemory, VH_memoryType, VH_offset, VH_pMappedData, VH_pName, VH_pUserData, VH_size
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVmaAllocationInfo.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVmaAllocationInfo
.asSlice
(long index, long count) Creates a slice ofVmaAllocationInfo
.long
deviceMemoryAt
(long index) ReturnsdeviceMemory
at the given index.deviceMemoryAt
(long index, long value) SetsdeviceMemory
with the given value at the given index.long
Estimates the element count of this group type buffer.int
memoryTypeAt
(long index) ReturnsmemoryType
at the given index.memoryTypeAt
(long index, int value) SetsmemoryType
with the given value at the given index.long
offsetAt
(long index) Returnsoffset
at the given index.offsetAt
(long index, long value) Setsoffset
with the given value at the given index.pMappedDataAt
(long index) ReturnspMappedData
at the given index.pMappedDataAt
(long index, MemorySegment value) SetspMappedData
with the given value at the given index.pNameAt
(long index) ReturnspName
at the given index.pNameAt
(long index, MemorySegment value) SetspName
with the given value at the given index.pUserDataAt
(long index) ReturnspUserData
at the given index.pUserDataAt
(long index, MemorySegment value) SetspUserData
with the given value at the given index.long
sizeAt
(long index) Returnssize
at the given index.sizeAt
(long index, long value) Setssize
with the given value at the given index.Methods inherited from class overrungl.vma.VmaAllocationInfo
alloc, alloc, allocInit, allocInit, allocInit, allocInit, allocInit, allocInit, allocInit, asBuffer, copyFrom, deviceMemory, deviceMemory, deviceMemory, deviceMemory, memoryType, memoryType, memoryType, memoryType, of, offset, offset, offset, offset, ofNative, ofNative, pMappedData, pMappedData, pMappedData, pMappedData, pName, pName, pName, pName, pUserData, pUserData, pUserData, pUserData, size, size, size, size
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVmaAllocationInfo.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 ofVmaAllocationInfo
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VmaAllocationInfo
-
asSlice
Creates a slice ofVmaAllocationInfo
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VmaAllocationInfo
-
memoryTypeAt
public int memoryTypeAt(long index) ReturnsmemoryType
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
memoryType
at the given index
-
memoryTypeAt
SetsmemoryType
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceMemoryAt
public long deviceMemoryAt(long index) ReturnsdeviceMemory
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
deviceMemory
at the given index
-
deviceMemoryAt
SetsdeviceMemory
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
offsetAt
public long offsetAt(long index) Returnsoffset
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
offset
at the given index
-
offsetAt
Setsoffset
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
sizeAt
public long sizeAt(long index) Returnssize
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
size
at the given index
-
sizeAt
Setssize
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pMappedDataAt
ReturnspMappedData
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pMappedData
at the given index
-
pMappedDataAt
SetspMappedData
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pUserDataAt
ReturnspUserData
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pUserData
at the given index
-
pUserDataAt
SetspUserData
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pNameAt
ReturnspName
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pName
at the given index
-
pNameAt
SetspName
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-