Class VkSubresourceLayout.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkSubresourceLayout
overrungl.vulkan.struct.VkSubresourceLayout.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkSubresourceLayout
A buffer of
VkSubresourceLayout
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.struct.VkSubresourceLayout
VkSubresourceLayout.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.struct.VkSubresourceLayout
LAYOUT, LAYOUT_arrayPitch, LAYOUT_depthPitch, LAYOUT_offset, LAYOUT_rowPitch, LAYOUT_size, OFFSET_arrayPitch, OFFSET_depthPitch, OFFSET_offset, OFFSET_rowPitch, OFFSET_size, VH_arrayPitch, VH_depthPitch, VH_offset, VH_rowPitch, VH_size
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkSubresourceLayout.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionlong
arrayPitchAt
(long index) ReturnsarrayPitch
at the given index.arrayPitchAt
(long index, long value) SetsarrayPitch
with the given value at the given index.asSlice
(long index) Creates a slice ofVkSubresourceLayout
.asSlice
(long index, long count) Creates a slice ofVkSubresourceLayout
.long
depthPitchAt
(long index) ReturnsdepthPitch
at the given index.depthPitchAt
(long index, long value) SetsdepthPitch
with the given value at the given index.long
Estimates the element count of this group type buffer.long
offsetAt
(long index) Returnsoffset
at the given index.offsetAt
(long index, long value) Setsoffset
with the given value at the given index.long
rowPitchAt
(long index) ReturnsrowPitch
at the given index.rowPitchAt
(long index, long value) SetsrowPitch
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.vulkan.struct.VkSubresourceLayout
alloc, alloc, arrayPitch, arrayPitch, arrayPitch, arrayPitch, asBuffer, copyFrom, depthPitch, depthPitch, depthPitch, depthPitch, of, offset, offset, offset, offset, ofNative, ofNative, rowPitch, rowPitch, rowPitch, rowPitch, size, size, size, size
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkSubresourceLayout.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 ofVkSubresourceLayout
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkSubresourceLayout
-
asSlice
Creates a slice ofVkSubresourceLayout
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkSubresourceLayout
-
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
-
rowPitchAt
public long rowPitchAt(long index) ReturnsrowPitch
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
rowPitch
at the given index
-
rowPitchAt
SetsrowPitch
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
arrayPitchAt
public long arrayPitchAt(long index) ReturnsarrayPitch
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
arrayPitch
at the given index
-
arrayPitchAt
SetsarrayPitch
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
depthPitchAt
public long depthPitchAt(long index) ReturnsdepthPitch
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
depthPitch
at the given index
-
depthPitchAt
SetsdepthPitch
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-