Class VkAttachmentDescription2
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkAttachmentDescription2
- All Implemented Interfaces:
Addressable
Layout
struct VkAttachmentDescription2 {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkAttachmentDescriptionFlags flags;
(int) VkFormat format;
(int) VkSampleCountFlagBits samples;
(int) VkAttachmentLoadOp loadOp;
(int) VkAttachmentStoreOp storeOp;
(int) VkAttachmentLoadOp stencilLoadOp;
(int) VkAttachmentStoreOp stencilStoreOp;
(int) VkImageLayout initialLayout;
(int) VkImageLayout finalLayout;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkAttachmentDescription2
.static final MemoryLayout
The memory layout offinalLayout
.static final MemoryLayout
The memory layout offlags
.static final MemoryLayout
The memory layout offormat
.static final MemoryLayout
The memory layout ofinitialLayout
.static final MemoryLayout
The memory layout ofloadOp
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofsamples
.static final MemoryLayout
The memory layout ofstencilLoadOp
.static final MemoryLayout
The memory layout ofstencilStoreOp
.static final MemoryLayout
The memory layout ofstoreOp
.static final MemoryLayout
The memory layout ofsType
.static final long
The byte offset offinalLayout
.static final long
The byte offset offlags
.static final long
The byte offset offormat
.static final long
The byte offset ofinitialLayout
.static final long
The byte offset ofloadOp
.static final long
The byte offset ofpNext
.static final long
The byte offset ofsamples
.static final long
The byte offset ofstencilLoadOp
.static final long
The byte offset ofstencilStoreOp
.static final long
The byte offset ofstoreOp
.static final long
The byte offset ofsType
.static final VarHandle
TheVarHandle
offinalLayout
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofinitialLayout
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofstencilLoadOp
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofstencilStoreOp
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkAttachmentDescription2
(MemorySegment segment, long elementCount) CreatesVkAttachmentDescription2
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescription2
alloc
(SegmentAllocator allocator) Allocates aVkAttachmentDescription2
with the given segment allocator.static VkAttachmentDescription2
alloc
(SegmentAllocator allocator, long count) Allocates aVkAttachmentDescription2
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkAttachmentDescription2
.asSlice
(long index, long count) Creates a slice ofVkAttachmentDescription2
.at
(long index, Consumer<VkAttachmentDescription2> func) VisitsVkAttachmentDescription2
buffer at the given index.Copies from the given source.int
ReturnsfinalLayout
.finalLayout
(int value) SetsfinalLayout
with the given value.static int
finalLayout
(MemorySegment segment, long index) ReturnsfinalLayout
at the given index.static void
finalLayout
(MemorySegment segment, long index, int value) SetsfinalLayout
with the given value at the given index.int
finalLayoutAt
(long index) ReturnsfinalLayout
at the given index.finalLayoutAt
(long index, int value) SetsfinalLayout
with the given value at the given index.int
flags()
Returnsflags
.flags
(int value) Setsflags
with the given value.static int
flags
(MemorySegment segment, long index) Returnsflags
at the given index.static void
flags
(MemorySegment segment, long index, int value) Setsflags
with the given value at the given index.int
flagsAt
(long index) Returnsflags
at the given index.flagsAt
(long index, int value) Setsflags
with the given value at the given index.int
format()
Returnsformat
.format
(int value) Setsformat
with the given value.static int
format
(MemorySegment segment, long index) Returnsformat
at the given index.static void
format
(MemorySegment segment, long index, int value) Setsformat
with the given value at the given index.int
formatAt
(long index) Returnsformat
at the given index.formatAt
(long index, int value) Setsformat
with the given value at the given index.int
ReturnsinitialLayout
.initialLayout
(int value) SetsinitialLayout
with the given value.static int
initialLayout
(MemorySegment segment, long index) ReturnsinitialLayout
at the given index.static void
initialLayout
(MemorySegment segment, long index, int value) SetsinitialLayout
with the given value at the given index.int
initialLayoutAt
(long index) ReturnsinitialLayout
at the given index.initialLayoutAt
(long index, int value) SetsinitialLayout
with the given value at the given index.int
loadOp()
ReturnsloadOp
.loadOp
(int value) SetsloadOp
with the given value.static int
loadOp
(MemorySegment segment, long index) ReturnsloadOp
at the given index.static void
loadOp
(MemorySegment segment, long index, int value) SetsloadOp
with the given value at the given index.int
loadOpAt
(long index) ReturnsloadOp
at the given index.loadOpAt
(long index, int value) SetsloadOp
with the given value at the given index.static VkAttachmentDescription2
of
(MemorySegment segment) CreatesVkAttachmentDescription2
with the given segment.static VkAttachmentDescription2
ofNative
(MemorySegment segment) CreatesVkAttachmentDescription2
with the given segment.static VkAttachmentDescription2
ofNative
(MemorySegment segment, long count) CreatesVkAttachmentDescription2
with the given segment.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.pNextAt
(long index) ReturnspNext
at the given index.pNextAt
(long index, MemorySegment value) SetspNext
with the given value at the given index.reinterpret
(long count) Reinterprets this buffer with the given count.int
samples()
Returnssamples
.samples
(int value) Setssamples
with the given value.static int
samples
(MemorySegment segment, long index) Returnssamples
at the given index.static void
samples
(MemorySegment segment, long index, int value) Setssamples
with the given value at the given index.int
samplesAt
(long index) Returnssamples
at the given index.samplesAt
(long index, int value) Setssamples
with the given value at the given index.int
ReturnsstencilLoadOp
.stencilLoadOp
(int value) SetsstencilLoadOp
with the given value.static int
stencilLoadOp
(MemorySegment segment, long index) ReturnsstencilLoadOp
at the given index.static void
stencilLoadOp
(MemorySegment segment, long index, int value) SetsstencilLoadOp
with the given value at the given index.int
stencilLoadOpAt
(long index) ReturnsstencilLoadOp
at the given index.stencilLoadOpAt
(long index, int value) SetsstencilLoadOp
with the given value at the given index.int
ReturnsstencilStoreOp
.stencilStoreOp
(int value) SetsstencilStoreOp
with the given value.static int
stencilStoreOp
(MemorySegment segment, long index) ReturnsstencilStoreOp
at the given index.static void
stencilStoreOp
(MemorySegment segment, long index, int value) SetsstencilStoreOp
with the given value at the given index.int
stencilStoreOpAt
(long index) ReturnsstencilStoreOp
at the given index.stencilStoreOpAt
(long index, int value) SetsstencilStoreOp
with the given value at the given index.int
storeOp()
ReturnsstoreOp
.storeOp
(int value) SetsstoreOp
with the given value.static int
storeOp
(MemorySegment segment, long index) ReturnsstoreOp
at the given index.static void
storeOp
(MemorySegment segment, long index, int value) SetsstoreOp
with the given value at the given index.int
storeOpAt
(long index) ReturnsstoreOp
at the given index.storeOpAt
(long index, int value) SetsstoreOp
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.int
sTypeAt
(long index) ReturnssType
at the given index.sTypeAt
(long index, int value) SetssType
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 ofVkAttachmentDescription2
. -
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_flags
public static final long OFFSET_flagsThe byte offset offlags
. -
LAYOUT_flags
The memory layout offlags
. -
VH_flags
-
OFFSET_format
public static final long OFFSET_formatThe byte offset offormat
. -
LAYOUT_format
The memory layout offormat
. -
VH_format
-
OFFSET_samples
public static final long OFFSET_samplesThe byte offset ofsamples
. -
LAYOUT_samples
The memory layout ofsamples
. -
VH_samples
-
OFFSET_loadOp
public static final long OFFSET_loadOpThe byte offset ofloadOp
. -
LAYOUT_loadOp
The memory layout ofloadOp
. -
VH_loadOp
-
OFFSET_storeOp
public static final long OFFSET_storeOpThe byte offset ofstoreOp
. -
LAYOUT_storeOp
The memory layout ofstoreOp
. -
VH_storeOp
-
OFFSET_stencilLoadOp
public static final long OFFSET_stencilLoadOpThe byte offset ofstencilLoadOp
. -
LAYOUT_stencilLoadOp
The memory layout ofstencilLoadOp
. -
VH_stencilLoadOp
-
OFFSET_stencilStoreOp
public static final long OFFSET_stencilStoreOpThe byte offset ofstencilStoreOp
. -
LAYOUT_stencilStoreOp
The memory layout ofstencilStoreOp
. -
VH_stencilStoreOp
-
OFFSET_initialLayout
public static final long OFFSET_initialLayoutThe byte offset ofinitialLayout
. -
LAYOUT_initialLayout
The memory layout ofinitialLayout
. -
VH_initialLayout
-
OFFSET_finalLayout
public static final long OFFSET_finalLayoutThe byte offset offinalLayout
. -
LAYOUT_finalLayout
The memory layout offinalLayout
. -
VH_finalLayout
-
-
Constructor Details
-
VkAttachmentDescription2
CreatesVkAttachmentDescription2
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkAttachmentDescription2
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkAttachmentDescription2
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
VkAttachmentDescription2
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 aVkAttachmentDescription2
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkAttachmentDescription2
-
alloc
Allocates aVkAttachmentDescription2
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkAttachmentDescription2
-
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
-
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
-
flags
Returnsflags
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
flags
at the given index
-
flags
public int flags()Returnsflags
.- Returns:
flags
-
flags
Setsflags
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
flags
Setsflags
with the given value.- Parameters:
value
- the value- Returns:
this
-
format
Returnsformat
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
format
at the given index
-
format
public int format()Returnsformat
.- Returns:
format
-
format
Setsformat
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
format
Setsformat
with the given value.- Parameters:
value
- the value- Returns:
this
-
samples
Returnssamples
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
samples
at the given index
-
samples
public int samples()Returnssamples
.- Returns:
samples
-
samples
Setssamples
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
samples
Setssamples
with the given value.- Parameters:
value
- the value- Returns:
this
-
loadOp
ReturnsloadOp
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
loadOp
at the given index
-
loadOp
public int loadOp()ReturnsloadOp
.- Returns:
loadOp
-
loadOp
SetsloadOp
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
loadOp
SetsloadOp
with the given value.- Parameters:
value
- the value- Returns:
this
-
storeOp
ReturnsstoreOp
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
storeOp
at the given index
-
storeOp
public int storeOp()ReturnsstoreOp
.- Returns:
storeOp
-
storeOp
SetsstoreOp
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
storeOp
SetsstoreOp
with the given value.- Parameters:
value
- the value- Returns:
this
-
stencilLoadOp
ReturnsstencilLoadOp
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
stencilLoadOp
at the given index
-
stencilLoadOp
public int stencilLoadOp()ReturnsstencilLoadOp
.- Returns:
stencilLoadOp
-
stencilLoadOp
SetsstencilLoadOp
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
stencilLoadOp
SetsstencilLoadOp
with the given value.- Parameters:
value
- the value- Returns:
this
-
stencilStoreOp
ReturnsstencilStoreOp
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
stencilStoreOp
at the given index
-
stencilStoreOp
public int stencilStoreOp()ReturnsstencilStoreOp
.- Returns:
stencilStoreOp
-
stencilStoreOp
SetsstencilStoreOp
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
stencilStoreOp
SetsstencilStoreOp
with the given value.- Parameters:
value
- the value- Returns:
this
-
initialLayout
ReturnsinitialLayout
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
initialLayout
at the given index
-
initialLayout
public int initialLayout()ReturnsinitialLayout
.- Returns:
initialLayout
-
initialLayout
SetsinitialLayout
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
initialLayout
SetsinitialLayout
with the given value.- Parameters:
value
- the value- Returns:
this
-
finalLayout
ReturnsfinalLayout
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
finalLayout
at the given index
-
finalLayout
public int finalLayout()ReturnsfinalLayout
.- Returns:
finalLayout
-
finalLayout
SetsfinalLayout
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
finalLayout
SetsfinalLayout
with the given value.- Parameters:
value
- the value- Returns:
this
-
asSlice
Creates a slice ofVkAttachmentDescription2
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkAttachmentDescription2
-
asSlice
Creates a slice ofVkAttachmentDescription2
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkAttachmentDescription2
-
at
VisitsVkAttachmentDescription2
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssType
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
sType
at the given index
-
sTypeAt
SetssType
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pNextAt
ReturnspNext
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNextAt
SetspNext
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
flagsAt
public int flagsAt(long index) Returnsflags
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
flags
at the given index
-
flagsAt
Setsflags
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
formatAt
public int formatAt(long index) Returnsformat
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
format
at the given index
-
formatAt
Setsformat
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
samplesAt
public int samplesAt(long index) Returnssamples
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
samples
at the given index
-
samplesAt
Setssamples
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
loadOpAt
public int loadOpAt(long index) ReturnsloadOp
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
loadOp
at the given index
-
loadOpAt
SetsloadOp
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
storeOpAt
public int storeOpAt(long index) ReturnsstoreOp
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
storeOp
at the given index
-
storeOpAt
SetsstoreOp
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
stencilLoadOpAt
public int stencilLoadOpAt(long index) ReturnsstencilLoadOp
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
stencilLoadOp
at the given index
-
stencilLoadOpAt
SetsstencilLoadOp
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
stencilStoreOpAt
public int stencilStoreOpAt(long index) ReturnsstencilStoreOp
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
stencilStoreOp
at the given index
-
stencilStoreOpAt
SetsstencilStoreOp
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
initialLayoutAt
public int initialLayoutAt(long index) ReturnsinitialLayout
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
initialLayout
at the given index
-
initialLayoutAt
SetsinitialLayout
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
finalLayoutAt
public int finalLayoutAt(long index) ReturnsfinalLayout
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
finalLayout
at the given index
-
finalLayoutAt
SetsfinalLayout
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-