Class VkHostImageLayoutTransitionInfo
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkHostImageLayoutTransitionInfo
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkHostImageLayoutTransitionInfo.Buffer
public sealed class VkHostImageLayoutTransitionInfo
extends GroupType
permits VkHostImageLayoutTransitionInfo.Buffer
Layout
struct VkHostImageLayoutTransitionInfo {
(int) VkStructureType sType;
const void* pNext;
(uint64_t) VkImage image;
(int) VkImageLayout oldLayout;
(int) VkImageLayout newLayout;
(struct VkImageSubresourceRange) VkImageSubresourceRange subresourceRange;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkHostImageLayoutTransitionInfo
.static final MemoryLayout
The memory layout ofimage
.static final MemoryLayout
The memory layout ofnewLayout
.static final MemoryLayout
The memory layout ofoldLayout
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofsType
.static final MemoryLayout
The memory layout ofsubresourceRange
.static final long
The byte offset ofimage
.static final long
The byte offset ofnewLayout
.static final long
The byte offset ofoldLayout
.static final long
The byte offset ofpNext
.static final long
The byte offset ofsType
.static final long
The byte offset ofsubresourceRange
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCreatesVkHostImageLayoutTransitionInfo
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc
(SegmentAllocator allocator) Allocates aVkHostImageLayoutTransitionInfo
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkHostImageLayoutTransitionInfo
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.long
image()
Returnsimage
.image
(long value) Setsimage
with the given value.static long
image
(MemorySegment segment, long index) Returnsimage
at the given index.static void
image
(MemorySegment segment, long index, long value) Setsimage
with the given value at the given index.int
ReturnsnewLayout
.newLayout
(int value) SetsnewLayout
with the given value.static int
newLayout
(MemorySegment segment, long index) ReturnsnewLayout
at the given index.static void
newLayout
(MemorySegment segment, long index, int value) SetsnewLayout
with the given value at the given index.of
(MemorySegment segment) CreatesVkHostImageLayoutTransitionInfo
with the given segment.ofNative
(MemorySegment segment) CreatesVkHostImageLayoutTransitionInfo
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkHostImageLayoutTransitionInfo
with the given segment.int
ReturnsoldLayout
.oldLayout
(int value) SetsoldLayout
with the given value.static int
oldLayout
(MemorySegment segment, long index) ReturnsoldLayout
at the given index.static void
oldLayout
(MemorySegment segment, long index, int value) SetsoldLayout
with the given value at the given index.pNext()
ReturnspNext
.pNext
(MemorySegment value) SetspNext
with the given value.static MemorySegment
pNext
(MemorySegment segment, long index) ReturnspNext
at the given index.static void
pNext
(MemorySegment segment, long index, MemorySegment value) SetspNext
with the given value at the given index.int
sType()
ReturnssType
.sType
(int value) SetssType
with the given value.static int
sType
(MemorySegment segment, long index) ReturnssType
at the given index.static void
sType
(MemorySegment segment, long index, int value) SetssType
with the given value at the given index.ReturnssubresourceRange
.subresourceRange
(MemorySegment value) SetssubresourceRange
with the given value.static MemorySegment
subresourceRange
(MemorySegment segment, long index) ReturnssubresourceRange
at the given index.static void
subresourceRange
(MemorySegment segment, long index, MemorySegment value) SetssubresourceRange
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkHostImageLayoutTransitionInfo
. -
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_image
public static final long OFFSET_imageThe byte offset ofimage
. -
LAYOUT_image
The memory layout ofimage
. -
VH_image
-
OFFSET_oldLayout
public static final long OFFSET_oldLayoutThe byte offset ofoldLayout
. -
LAYOUT_oldLayout
The memory layout ofoldLayout
. -
VH_oldLayout
-
OFFSET_newLayout
public static final long OFFSET_newLayoutThe byte offset ofnewLayout
. -
LAYOUT_newLayout
The memory layout ofnewLayout
. -
VH_newLayout
-
OFFSET_subresourceRange
public static final long OFFSET_subresourceRangeThe byte offset ofsubresourceRange
. -
LAYOUT_subresourceRange
The memory layout ofsubresourceRange
.
-
-
Constructor Details
-
VkHostImageLayoutTransitionInfo
CreatesVkHostImageLayoutTransitionInfo
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkHostImageLayoutTransitionInfo
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkHostImageLayoutTransitionInfo
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkHostImageLayoutTransitionInfo
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkHostImageLayoutTransitionInfo
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkHostImageLayoutTransitionInfo
-
alloc
Allocates aVkHostImageLayoutTransitionInfo
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkHostImageLayoutTransitionInfo
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
sType
ReturnssType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
sType
at the given index
-
sType
public int sType()ReturnssType
.- Returns:
sType
-
sType
SetssType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
sType
SetssType
with the given value.- Parameters:
value
- the value- Returns:
this
-
pNext
ReturnspNext
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNext
-
pNext
SetspNext
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
pNext
SetspNext
with the given value.- Parameters:
value
- the value- Returns:
this
-
image
Returnsimage
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
image
at the given index
-
image
public long image()Returnsimage
.- Returns:
image
-
image
Setsimage
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
image
Setsimage
with the given value.- Parameters:
value
- the value- Returns:
this
-
oldLayout
ReturnsoldLayout
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
oldLayout
at the given index
-
oldLayout
public int oldLayout()ReturnsoldLayout
.- Returns:
oldLayout
-
oldLayout
SetsoldLayout
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
oldLayout
SetsoldLayout
with the given value.- Parameters:
value
- the value- Returns:
this
-
newLayout
ReturnsnewLayout
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
newLayout
at the given index
-
newLayout
public int newLayout()ReturnsnewLayout
.- Returns:
newLayout
-
newLayout
SetsnewLayout
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
newLayout
SetsnewLayout
with the given value.- Parameters:
value
- the value- Returns:
this
-
subresourceRange
ReturnssubresourceRange
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subresourceRange
at the given index
-
subresourceRange
-
subresourceRange
SetssubresourceRange
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subresourceRange
SetssubresourceRange
with the given value.- Parameters:
value
- the value- Returns:
this
-