Class VkInputAttachmentAspectReferenceKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkInputAttachmentAspectReferenceKHR
- All Implemented Interfaces:
Addressable
Layout
struct VkInputAttachmentAspectReferenceKHR {
uint32_t subpass;
uint32_t inputAttachmentIndex;
((uint32_t) VkFlags) VkImageAspectFlags aspectMask;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkInputAttachmentAspectReferenceKHR
.static final MemoryLayout
The memory layout ofaspectMask
.static final MemoryLayout
The memory layout ofinputAttachmentIndex
.static final MemoryLayout
The memory layout ofsubpass
.static final long
The byte offset ofaspectMask
.static final long
The byte offset ofinputAttachmentIndex
.static final long
The byte offset ofsubpass
.static final VarHandle
static final VarHandle
TheVarHandle
ofinputAttachmentIndex
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkInputAttachmentAspectReferenceKHR
(MemorySegment segment, long elementCount) CreatesVkInputAttachmentAspectReferenceKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc
(SegmentAllocator allocator) Allocates aVkInputAttachmentAspectReferenceKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkInputAttachmentAspectReferenceKHR
with the given segment allocator and count.int
ReturnsaspectMask
.aspectMask
(int value) SetsaspectMask
with the given value.static int
aspectMask
(MemorySegment segment, long index) ReturnsaspectMask
at the given index.static void
aspectMask
(MemorySegment segment, long index, int value) SetsaspectMask
with the given value at the given index.int
aspectMaskAt
(long index) ReturnsaspectMask
at the given index.aspectMaskAt
(long index, int value) SetsaspectMask
with the given value at the given index.asSlice
(long index) Creates a slice ofVkInputAttachmentAspectReferenceKHR
.asSlice
(long index, long count) Creates a slice ofVkInputAttachmentAspectReferenceKHR
.at
(long index, Consumer<VkInputAttachmentAspectReferenceKHR> func) VisitsVkInputAttachmentAspectReferenceKHR
buffer at the given index.Copies from the given source.int
ReturnsinputAttachmentIndex
.inputAttachmentIndex
(int value) SetsinputAttachmentIndex
with the given value.static int
inputAttachmentIndex
(MemorySegment segment, long index) ReturnsinputAttachmentIndex
at the given index.static void
inputAttachmentIndex
(MemorySegment segment, long index, int value) SetsinputAttachmentIndex
with the given value at the given index.int
inputAttachmentIndexAt
(long index) ReturnsinputAttachmentIndex
at the given index.inputAttachmentIndexAt
(long index, int value) SetsinputAttachmentIndex
with the given value at the given index.of
(MemorySegment segment) CreatesVkInputAttachmentAspectReferenceKHR
with the given segment.ofNative
(MemorySegment segment) CreatesVkInputAttachmentAspectReferenceKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkInputAttachmentAspectReferenceKHR
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.int
subpass()
Returnssubpass
.subpass
(int value) Setssubpass
with the given value.static int
subpass
(MemorySegment segment, long index) Returnssubpass
at the given index.static void
subpass
(MemorySegment segment, long index, int value) Setssubpass
with the given value at the given index.int
subpassAt
(long index) Returnssubpass
at the given index.subpassAt
(long index, int value) Setssubpass
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 ofVkInputAttachmentAspectReferenceKHR
. -
OFFSET_subpass
public static final long OFFSET_subpassThe byte offset ofsubpass
. -
LAYOUT_subpass
The memory layout ofsubpass
. -
VH_subpass
-
OFFSET_inputAttachmentIndex
public static final long OFFSET_inputAttachmentIndexThe byte offset ofinputAttachmentIndex
. -
LAYOUT_inputAttachmentIndex
The memory layout ofinputAttachmentIndex
. -
VH_inputAttachmentIndex
-
OFFSET_aspectMask
public static final long OFFSET_aspectMaskThe byte offset ofaspectMask
. -
LAYOUT_aspectMask
The memory layout ofaspectMask
. -
VH_aspectMask
-
-
Constructor Details
-
VkInputAttachmentAspectReferenceKHR
CreatesVkInputAttachmentAspectReferenceKHR
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkInputAttachmentAspectReferenceKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkInputAttachmentAspectReferenceKHR
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
VkInputAttachmentAspectReferenceKHR
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 aVkInputAttachmentAspectReferenceKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkInputAttachmentAspectReferenceKHR
-
alloc
Allocates aVkInputAttachmentAspectReferenceKHR
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkInputAttachmentAspectReferenceKHR
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted buffer
-
subpass
Returnssubpass
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subpass
at the given index
-
subpass
public int subpass()Returnssubpass
.- Returns:
subpass
-
subpass
Setssubpass
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subpass
Setssubpass
with the given value.- Parameters:
value
- the value- Returns:
this
-
inputAttachmentIndex
ReturnsinputAttachmentIndex
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
inputAttachmentIndex
at the given index
-
inputAttachmentIndex
public int inputAttachmentIndex()ReturnsinputAttachmentIndex
.- Returns:
inputAttachmentIndex
-
inputAttachmentIndex
SetsinputAttachmentIndex
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
inputAttachmentIndex
SetsinputAttachmentIndex
with the given value.- Parameters:
value
- the value- Returns:
this
-
aspectMask
ReturnsaspectMask
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
aspectMask
at the given index
-
aspectMask
public int aspectMask()ReturnsaspectMask
.- Returns:
aspectMask
-
aspectMask
SetsaspectMask
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
aspectMask
SetsaspectMask
with the given value.- Parameters:
value
- the value- Returns:
this
-
asSlice
Creates a slice ofVkInputAttachmentAspectReferenceKHR
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkInputAttachmentAspectReferenceKHR
-
asSlice
Creates a slice ofVkInputAttachmentAspectReferenceKHR
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkInputAttachmentAspectReferenceKHR
-
at
public VkInputAttachmentAspectReferenceKHR at(long index, Consumer<VkInputAttachmentAspectReferenceKHR> func) VisitsVkInputAttachmentAspectReferenceKHR
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
subpassAt
public int subpassAt(long index) Returnssubpass
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
subpass
at the given index
-
subpassAt
Setssubpass
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
inputAttachmentIndexAt
public int inputAttachmentIndexAt(long index) ReturnsinputAttachmentIndex
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
inputAttachmentIndex
at the given index
-
inputAttachmentIndexAt
SetsinputAttachmentIndex
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
aspectMaskAt
public int aspectMaskAt(long index) ReturnsaspectMask
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
aspectMask
at the given index
-
aspectMaskAt
SetsaspectMask
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-