Class VkInputAttachmentAspectReferenceKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkInputAttachmentAspectReferenceKHR
- All Implemented Interfaces:
Addressable
Represents VkInputAttachmentAspectReferenceKHR.
Layout
struct VkInputAttachmentAspectReferenceKHR {
uint32_t subpass;
uint32_t inputAttachmentIndex;
((uint32_t) VkFlags) VkImageAspectFlags aspectMask;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkInputAttachmentAspectReferenceKHR.static final MemoryLayoutThe memory layout ofaspectMask.static final MemoryLayoutThe memory layout ofinputAttachmentIndex.static final MemoryLayoutThe memory layout ofsubpass.static final longThe byte offset ofaspectMask.static final longThe byte offset ofinputAttachmentIndex.static final longThe byte offset ofsubpass.static final VarHandlestatic final VarHandleTheVarHandleofinputAttachmentIndexof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkInputAttachmentAspectReferenceKHR(MemorySegment segment, long elementCount) CreatesVkInputAttachmentAspectReferenceKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkInputAttachmentAspectReferenceKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkInputAttachmentAspectReferenceKHRwith the given segment allocator and count.intReturnsaspectMask.aspectMask(int value) SetsaspectMaskwith the given value.static intaspectMask(MemorySegment segment, long index) ReturnsaspectMaskat the given index.static voidaspectMask(MemorySegment segment, long index, int value) SetsaspectMaskwith the given value at the given index.intaspectMaskAt(long index) ReturnsaspectMaskat the given index.aspectMaskAt(long index, int value) SetsaspectMaskwith 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) VisitsVkInputAttachmentAspectReferenceKHRbuffer at the given index.Copies from the given source.intReturnsinputAttachmentIndex.inputAttachmentIndex(int value) SetsinputAttachmentIndexwith the given value.static intinputAttachmentIndex(MemorySegment segment, long index) ReturnsinputAttachmentIndexat the given index.static voidinputAttachmentIndex(MemorySegment segment, long index, int value) SetsinputAttachmentIndexwith the given value at the given index.intinputAttachmentIndexAt(long index) ReturnsinputAttachmentIndexat the given index.inputAttachmentIndexAt(long index, int value) SetsinputAttachmentIndexwith the given value at the given index.of(MemorySegment segment) CreatesVkInputAttachmentAspectReferenceKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkInputAttachmentAspectReferenceKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkInputAttachmentAspectReferenceKHRwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.intsubpass()Returnssubpass.subpass(int value) Setssubpasswith the given value.static intsubpass(MemorySegment segment, long index) Returnssubpassat the given index.static voidsubpass(MemorySegment segment, long index, int value) Setssubpasswith the given value at the given index.intsubpassAt(long index) Returnssubpassat the given index.subpassAt(long index, int value) Setssubpasswith the given value at the given index.Methods inherited from class 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
CreatesVkInputAttachmentAspectReferenceKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkInputAttachmentAspectReferenceKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkInputAttachmentAspectReferenceKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkInputAttachmentAspectReferenceKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkInputAttachmentAspectReferenceKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkInputAttachmentAspectReferenceKHR
-
alloc
Allocates aVkInputAttachmentAspectReferenceKHRwith 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
Returnssubpassat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
subpassat the given index
-
subpass
public int subpass()Returnssubpass.- Returns:
subpass
-
subpass
Setssubpasswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
subpass
Setssubpasswith the given value.- Parameters:
value- the value- Returns:
this
-
inputAttachmentIndex
ReturnsinputAttachmentIndexat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
inputAttachmentIndexat the given index
-
inputAttachmentIndex
public int inputAttachmentIndex()ReturnsinputAttachmentIndex.- Returns:
inputAttachmentIndex
-
inputAttachmentIndex
SetsinputAttachmentIndexwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
inputAttachmentIndex
SetsinputAttachmentIndexwith the given value.- Parameters:
value- the value- Returns:
this
-
aspectMask
ReturnsaspectMaskat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
aspectMaskat the given index
-
aspectMask
public int aspectMask()ReturnsaspectMask.- Returns:
aspectMask
-
aspectMask
SetsaspectMaskwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
aspectMask
SetsaspectMaskwith 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) VisitsVkInputAttachmentAspectReferenceKHRbuffer 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) Returnssubpassat the given index.- Parameters:
index- the index of the struct buffer- Returns:
subpassat the given index
-
subpassAt
Setssubpasswith 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) ReturnsinputAttachmentIndexat the given index.- Parameters:
index- the index of the struct buffer- Returns:
inputAttachmentIndexat the given index
-
inputAttachmentIndexAt
SetsinputAttachmentIndexwith 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) ReturnsaspectMaskat the given index.- Parameters:
index- the index of the struct buffer- Returns:
aspectMaskat the given index
-
aspectMaskAt
SetsaspectMaskwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-