Class VkDecompressMemoryRegionNV.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkDecompressMemoryRegionNV
overrungl.vulkan.nv.struct.VkDecompressMemoryRegionNV.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkDecompressMemoryRegionNV
A buffer of
VkDecompressMemoryRegionNV
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.nv.struct.VkDecompressMemoryRegionNV
VkDecompressMemoryRegionNV.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.nv.struct.VkDecompressMemoryRegionNV
LAYOUT, LAYOUT_compressedSize, LAYOUT_decompressedSize, LAYOUT_decompressionMethod, LAYOUT_dstAddress, LAYOUT_srcAddress, OFFSET_compressedSize, OFFSET_decompressedSize, OFFSET_decompressionMethod, OFFSET_dstAddress, OFFSET_srcAddress, VH_compressedSize, VH_decompressedSize, VH_decompressionMethod, VH_dstAddress, VH_srcAddress
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkDecompressMemoryRegionNV.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkDecompressMemoryRegionNV
.asSlice
(long index, long count) Creates a slice ofVkDecompressMemoryRegionNV
.long
compressedSizeAt
(long index) ReturnscompressedSize
at the given index.compressedSizeAt
(long index, long value) SetscompressedSize
with the given value at the given index.long
decompressedSizeAt
(long index) ReturnsdecompressedSize
at the given index.decompressedSizeAt
(long index, long value) SetsdecompressedSize
with the given value at the given index.long
decompressionMethodAt
(long index) ReturnsdecompressionMethod
at the given index.decompressionMethodAt
(long index, long value) SetsdecompressionMethod
with the given value at the given index.long
dstAddressAt
(long index) ReturnsdstAddress
at the given index.dstAddressAt
(long index, long value) SetsdstAddress
with the given value at the given index.long
Estimates the element count of this group type buffer.long
srcAddressAt
(long index) ReturnssrcAddress
at the given index.srcAddressAt
(long index, long value) SetssrcAddress
with the given value at the given index.Methods inherited from class overrungl.vulkan.nv.struct.VkDecompressMemoryRegionNV
alloc, alloc, asBuffer, compressedSize, compressedSize, compressedSize, compressedSize, copyFrom, decompressedSize, decompressedSize, decompressedSize, decompressedSize, decompressionMethod, decompressionMethod, decompressionMethod, decompressionMethod, dstAddress, dstAddress, dstAddress, dstAddress, of, ofNative, ofNative, srcAddress, srcAddress, srcAddress, srcAddress
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkDecompressMemoryRegionNV.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 ofVkDecompressMemoryRegionNV
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkDecompressMemoryRegionNV
-
asSlice
Creates a slice ofVkDecompressMemoryRegionNV
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkDecompressMemoryRegionNV
-
srcAddressAt
public long srcAddressAt(long index) ReturnssrcAddress
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
srcAddress
at the given index
-
srcAddressAt
SetssrcAddress
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
dstAddressAt
public long dstAddressAt(long index) ReturnsdstAddress
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
dstAddress
at the given index
-
dstAddressAt
SetsdstAddress
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
compressedSizeAt
public long compressedSizeAt(long index) ReturnscompressedSize
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
compressedSize
at the given index
-
compressedSizeAt
SetscompressedSize
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
decompressedSizeAt
public long decompressedSizeAt(long index) ReturnsdecompressedSize
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
decompressedSize
at the given index
-
decompressedSizeAt
SetsdecompressedSize
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
decompressionMethodAt
public long decompressionMethodAt(long index) ReturnsdecompressionMethod
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
decompressionMethod
at the given index
-
decompressionMethodAt
SetsdecompressionMethod
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-