Class VkAttachmentDescription2
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkAttachmentDescription2
- All Implemented Interfaces:
Addressable
Represents VkAttachmentDescription2.
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 StructLayoutThe struct layout ofVkAttachmentDescription2.static final MemoryLayoutThe memory layout offinalLayout.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout offormat.static final MemoryLayoutThe memory layout ofinitialLayout.static final MemoryLayoutThe memory layout ofloadOp.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsamples.static final MemoryLayoutThe memory layout ofstencilLoadOp.static final MemoryLayoutThe memory layout ofstencilStoreOp.static final MemoryLayoutThe memory layout ofstoreOp.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset offinalLayout.static final longThe byte offset offlags.static final longThe byte offset offormat.static final longThe byte offset ofinitialLayout.static final longThe byte offset ofloadOp.static final longThe byte offset ofpNext.static final longThe byte offset ofsamples.static final longThe byte offset ofstencilLoadOp.static final longThe byte offset ofstencilStoreOp.static final longThe byte offset ofstoreOp.static final longThe byte offset ofsType.static final VarHandleTheVarHandleoffinalLayoutof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofinitialLayoutof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofstencilLoadOpof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofstencilStoreOpof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkAttachmentDescription2(MemorySegment segment, long elementCount) CreatesVkAttachmentDescription2with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAttachmentDescription2alloc(SegmentAllocator allocator) Allocates aVkAttachmentDescription2with the given segment allocator.static VkAttachmentDescription2alloc(SegmentAllocator allocator, long count) Allocates aVkAttachmentDescription2with 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) VisitsVkAttachmentDescription2buffer at the given index.Copies from the given source.intReturnsfinalLayout.finalLayout(int value) SetsfinalLayoutwith the given value.static intfinalLayout(MemorySegment segment, long index) ReturnsfinalLayoutat the given index.static voidfinalLayout(MemorySegment segment, long index, int value) SetsfinalLayoutwith the given value at the given index.intfinalLayoutAt(long index) ReturnsfinalLayoutat the given index.finalLayoutAt(long index, int value) SetsfinalLayoutwith the given value at the given index.intflags()Returnsflags.flags(int value) Setsflagswith the given value.static intflags(MemorySegment segment, long index) Returnsflagsat the given index.static voidflags(MemorySegment segment, long index, int value) Setsflagswith the given value at the given index.intflagsAt(long index) Returnsflagsat the given index.flagsAt(long index, int value) Setsflagswith the given value at the given index.intformat()Returnsformat.format(int value) Setsformatwith the given value.static intformat(MemorySegment segment, long index) Returnsformatat the given index.static voidformat(MemorySegment segment, long index, int value) Setsformatwith the given value at the given index.intformatAt(long index) Returnsformatat the given index.formatAt(long index, int value) Setsformatwith the given value at the given index.intReturnsinitialLayout.initialLayout(int value) SetsinitialLayoutwith the given value.static intinitialLayout(MemorySegment segment, long index) ReturnsinitialLayoutat the given index.static voidinitialLayout(MemorySegment segment, long index, int value) SetsinitialLayoutwith the given value at the given index.intinitialLayoutAt(long index) ReturnsinitialLayoutat the given index.initialLayoutAt(long index, int value) SetsinitialLayoutwith the given value at the given index.intloadOp()ReturnsloadOp.loadOp(int value) SetsloadOpwith the given value.static intloadOp(MemorySegment segment, long index) ReturnsloadOpat the given index.static voidloadOp(MemorySegment segment, long index, int value) SetsloadOpwith the given value at the given index.intloadOpAt(long index) ReturnsloadOpat the given index.loadOpAt(long index, int value) SetsloadOpwith the given value at the given index.static VkAttachmentDescription2of(MemorySegment segment) CreatesVkAttachmentDescription2with the given segment.static VkAttachmentDescription2ofNative(MemorySegment segment) CreatesVkAttachmentDescription2with the given segment.static VkAttachmentDescription2ofNative(MemorySegment segment, long count) CreatesVkAttachmentDescription2with the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intsamples()Returnssamples.samples(int value) Setssampleswith the given value.static intsamples(MemorySegment segment, long index) Returnssamplesat the given index.static voidsamples(MemorySegment segment, long index, int value) Setssampleswith the given value at the given index.intsamplesAt(long index) Returnssamplesat the given index.samplesAt(long index, int value) Setssampleswith the given value at the given index.intReturnsstencilLoadOp.stencilLoadOp(int value) SetsstencilLoadOpwith the given value.static intstencilLoadOp(MemorySegment segment, long index) ReturnsstencilLoadOpat the given index.static voidstencilLoadOp(MemorySegment segment, long index, int value) SetsstencilLoadOpwith the given value at the given index.intstencilLoadOpAt(long index) ReturnsstencilLoadOpat the given index.stencilLoadOpAt(long index, int value) SetsstencilLoadOpwith the given value at the given index.intReturnsstencilStoreOp.stencilStoreOp(int value) SetsstencilStoreOpwith the given value.static intstencilStoreOp(MemorySegment segment, long index) ReturnsstencilStoreOpat the given index.static voidstencilStoreOp(MemorySegment segment, long index, int value) SetsstencilStoreOpwith the given value at the given index.intstencilStoreOpAt(long index) ReturnsstencilStoreOpat the given index.stencilStoreOpAt(long index, int value) SetsstencilStoreOpwith the given value at the given index.intstoreOp()ReturnsstoreOp.storeOp(int value) SetsstoreOpwith the given value.static intstoreOp(MemorySegment segment, long index) ReturnsstoreOpat the given index.static voidstoreOp(MemorySegment segment, long index, int value) SetsstoreOpwith the given value at the given index.intstoreOpAt(long index) ReturnsstoreOpat the given index.storeOpAt(long index, int value) SetsstoreOpwith the given value at the given index.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.Methods inherited from class 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
CreatesVkAttachmentDescription2with the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkAttachmentDescription2with the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkAttachmentDescription2with 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
VkAttachmentDescription2with 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 aVkAttachmentDescription2with the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkAttachmentDescription2
-
alloc
Allocates aVkAttachmentDescription2with 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
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
flags
Returnsflagsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
flagsat the given index
-
flags
public int flags()Returnsflags.- Returns:
flags
-
flags
Setsflagswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
flags
Setsflagswith the given value.- Parameters:
value- the value- Returns:
this
-
format
Returnsformatat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
formatat the given index
-
format
public int format()Returnsformat.- Returns:
format
-
format
Setsformatwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
format
Setsformatwith the given value.- Parameters:
value- the value- Returns:
this
-
samples
Returnssamplesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
samplesat the given index
-
samples
public int samples()Returnssamples.- Returns:
samples
-
samples
Setssampleswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
samples
Setssampleswith the given value.- Parameters:
value- the value- Returns:
this
-
loadOp
ReturnsloadOpat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
loadOpat the given index
-
loadOp
public int loadOp()ReturnsloadOp.- Returns:
loadOp
-
loadOp
SetsloadOpwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
loadOp
SetsloadOpwith the given value.- Parameters:
value- the value- Returns:
this
-
storeOp
ReturnsstoreOpat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
storeOpat the given index
-
storeOp
public int storeOp()ReturnsstoreOp.- Returns:
storeOp
-
storeOp
SetsstoreOpwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
storeOp
SetsstoreOpwith the given value.- Parameters:
value- the value- Returns:
this
-
stencilLoadOp
ReturnsstencilLoadOpat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
stencilLoadOpat the given index
-
stencilLoadOp
public int stencilLoadOp()ReturnsstencilLoadOp.- Returns:
stencilLoadOp
-
stencilLoadOp
SetsstencilLoadOpwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
stencilLoadOp
SetsstencilLoadOpwith the given value.- Parameters:
value- the value- Returns:
this
-
stencilStoreOp
ReturnsstencilStoreOpat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
stencilStoreOpat the given index
-
stencilStoreOp
public int stencilStoreOp()ReturnsstencilStoreOp.- Returns:
stencilStoreOp
-
stencilStoreOp
SetsstencilStoreOpwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
stencilStoreOp
SetsstencilStoreOpwith the given value.- Parameters:
value- the value- Returns:
this
-
initialLayout
ReturnsinitialLayoutat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
initialLayoutat the given index
-
initialLayout
public int initialLayout()ReturnsinitialLayout.- Returns:
initialLayout
-
initialLayout
SetsinitialLayoutwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
initialLayout
SetsinitialLayoutwith the given value.- Parameters:
value- the value- Returns:
this
-
finalLayout
ReturnsfinalLayoutat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
finalLayoutat the given index
-
finalLayout
public int finalLayout()ReturnsfinalLayout.- Returns:
finalLayout
-
finalLayout
SetsfinalLayoutwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
finalLayout
SetsfinalLayoutwith 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
VisitsVkAttachmentDescription2buffer 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) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith 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) Returnsflagsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
flagsat the given index
-
flagsAt
Setsflagswith 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) Returnsformatat the given index.- Parameters:
index- the index of the struct buffer- Returns:
formatat the given index
-
formatAt
Setsformatwith 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) Returnssamplesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
samplesat the given index
-
samplesAt
Setssampleswith 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) ReturnsloadOpat the given index.- Parameters:
index- the index of the struct buffer- Returns:
loadOpat the given index
-
loadOpAt
SetsloadOpwith 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) ReturnsstoreOpat the given index.- Parameters:
index- the index of the struct buffer- Returns:
storeOpat the given index
-
storeOpAt
SetsstoreOpwith 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) ReturnsstencilLoadOpat the given index.- Parameters:
index- the index of the struct buffer- Returns:
stencilLoadOpat the given index
-
stencilLoadOpAt
SetsstencilLoadOpwith 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) ReturnsstencilStoreOpat the given index.- Parameters:
index- the index of the struct buffer- Returns:
stencilStoreOpat the given index
-
stencilStoreOpAt
SetsstencilStoreOpwith 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) ReturnsinitialLayoutat the given index.- Parameters:
index- the index of the struct buffer- Returns:
initialLayoutat the given index
-
initialLayoutAt
SetsinitialLayoutwith 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) ReturnsfinalLayoutat the given index.- Parameters:
index- the index of the struct buffer- Returns:
finalLayoutat the given index
-
finalLayoutAt
SetsfinalLayoutwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-