Class VkFramebufferAttachmentImageInfo
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkFramebufferAttachmentImageInfo
- All Implemented Interfaces:
Addressable
Represents VkFramebufferAttachmentImageInfo.
Layout
struct VkFramebufferAttachmentImageInfo {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkImageCreateFlags flags;
((uint32_t) VkFlags) VkImageUsageFlags usage;
uint32_t width;
uint32_t height;
uint32_t layerCount;
uint32_t viewFormatCount;
const VkFormat* pViewFormats;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkFramebufferAttachmentImageInfo.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofheight.static final MemoryLayoutThe memory layout oflayerCount.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofpViewFormats.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout ofusage.static final MemoryLayoutThe memory layout ofviewFormatCount.static final MemoryLayoutThe memory layout ofwidth.static final longThe byte offset offlags.static final longThe byte offset ofheight.static final longThe byte offset oflayerCount.static final longThe byte offset ofpNext.static final longThe byte offset ofpViewFormats.static final longThe byte offset ofsType.static final longThe byte offset ofusage.static final longThe byte offset ofviewFormatCount.static final longThe byte offset ofwidth.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofpViewFormatsof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofviewFormatCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkFramebufferAttachmentImageInfo(MemorySegment segment, long elementCount) CreatesVkFramebufferAttachmentImageInfowith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkFramebufferAttachmentImageInfowith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkFramebufferAttachmentImageInfowith the given segment allocator and count.asSlice(long index) Creates a slice ofVkFramebufferAttachmentImageInfo.asSlice(long index, long count) Creates a slice ofVkFramebufferAttachmentImageInfo.at(long index, Consumer<VkFramebufferAttachmentImageInfo> func) VisitsVkFramebufferAttachmentImageInfobuffer at the given index.Copies from the given source.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.intheight()Returnsheight.height(int value) Setsheightwith the given value.static intheight(MemorySegment segment, long index) Returnsheightat the given index.static voidheight(MemorySegment segment, long index, int value) Setsheightwith the given value at the given index.intheightAt(long index) Returnsheightat the given index.heightAt(long index, int value) Setsheightwith the given value at the given index.intReturnslayerCount.layerCount(int value) SetslayerCountwith the given value.static intlayerCount(MemorySegment segment, long index) ReturnslayerCountat the given index.static voidlayerCount(MemorySegment segment, long index, int value) SetslayerCountwith the given value at the given index.intlayerCountAt(long index) ReturnslayerCountat the given index.layerCountAt(long index, int value) SetslayerCountwith the given value at the given index.of(MemorySegment segment) CreatesVkFramebufferAttachmentImageInfowith the given segment.ofNative(MemorySegment segment) CreatesVkFramebufferAttachmentImageInfowith the given segment.ofNative(MemorySegment segment, long count) CreatesVkFramebufferAttachmentImageInfowith 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.ReturnspViewFormats.pViewFormats(MemorySegment value) SetspViewFormatswith the given value.static MemorySegmentpViewFormats(MemorySegment segment, long index) ReturnspViewFormatsat the given index.static voidpViewFormats(MemorySegment segment, long index, MemorySegment value) SetspViewFormatswith the given value at the given index.pViewFormatsAt(long index) ReturnspViewFormatsat the given index.pViewFormatsAt(long index, MemorySegment value) SetspViewFormatswith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.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.intusage()Returnsusage.usage(int value) Setsusagewith the given value.static intusage(MemorySegment segment, long index) Returnsusageat the given index.static voidusage(MemorySegment segment, long index, int value) Setsusagewith the given value at the given index.intusageAt(long index) Returnsusageat the given index.usageAt(long index, int value) Setsusagewith the given value at the given index.intReturnsviewFormatCount.viewFormatCount(int value) SetsviewFormatCountwith the given value.static intviewFormatCount(MemorySegment segment, long index) ReturnsviewFormatCountat the given index.static voidviewFormatCount(MemorySegment segment, long index, int value) SetsviewFormatCountwith the given value at the given index.intviewFormatCountAt(long index) ReturnsviewFormatCountat the given index.viewFormatCountAt(long index, int value) SetsviewFormatCountwith the given value at the given index.intwidth()Returnswidth.width(int value) Setswidthwith the given value.static intwidth(MemorySegment segment, long index) Returnswidthat the given index.static voidwidth(MemorySegment segment, long index, int value) Setswidthwith the given value at the given index.intwidthAt(long index) Returnswidthat the given index.widthAt(long index, int value) Setswidthwith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkFramebufferAttachmentImageInfo. -
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_usage
public static final long OFFSET_usageThe byte offset ofusage. -
LAYOUT_usage
The memory layout ofusage. -
VH_usage
-
OFFSET_width
public static final long OFFSET_widthThe byte offset ofwidth. -
LAYOUT_width
The memory layout ofwidth. -
VH_width
-
OFFSET_height
public static final long OFFSET_heightThe byte offset ofheight. -
LAYOUT_height
The memory layout ofheight. -
VH_height
-
OFFSET_layerCount
public static final long OFFSET_layerCountThe byte offset oflayerCount. -
LAYOUT_layerCount
The memory layout oflayerCount. -
VH_layerCount
-
OFFSET_viewFormatCount
public static final long OFFSET_viewFormatCountThe byte offset ofviewFormatCount. -
LAYOUT_viewFormatCount
The memory layout ofviewFormatCount. -
VH_viewFormatCount
-
OFFSET_pViewFormats
public static final long OFFSET_pViewFormatsThe byte offset ofpViewFormats. -
LAYOUT_pViewFormats
The memory layout ofpViewFormats. -
VH_pViewFormats
-
-
Constructor Details
-
VkFramebufferAttachmentImageInfo
CreatesVkFramebufferAttachmentImageInfowith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkFramebufferAttachmentImageInfowith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkFramebufferAttachmentImageInfowith 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
VkFramebufferAttachmentImageInfowith 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 aVkFramebufferAttachmentImageInfowith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkFramebufferAttachmentImageInfo
-
alloc
Allocates aVkFramebufferAttachmentImageInfowith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkFramebufferAttachmentImageInfo
-
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
-
usage
Returnsusageat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
usageat the given index
-
usage
public int usage()Returnsusage.- Returns:
usage
-
usage
Setsusagewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
usage
Setsusagewith the given value.- Parameters:
value- the value- Returns:
this
-
width
Returnswidthat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
widthat the given index
-
width
public int width()Returnswidth.- Returns:
width
-
width
Setswidthwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
width
Setswidthwith the given value.- Parameters:
value- the value- Returns:
this
-
height
Returnsheightat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
heightat the given index
-
height
public int height()Returnsheight.- Returns:
height
-
height
Setsheightwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
height
Setsheightwith the given value.- Parameters:
value- the value- Returns:
this
-
layerCount
ReturnslayerCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
layerCountat the given index
-
layerCount
public int layerCount()ReturnslayerCount.- Returns:
layerCount
-
layerCount
SetslayerCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
layerCount
SetslayerCountwith the given value.- Parameters:
value- the value- Returns:
this
-
viewFormatCount
ReturnsviewFormatCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
viewFormatCountat the given index
-
viewFormatCount
public int viewFormatCount()ReturnsviewFormatCount.- Returns:
viewFormatCount
-
viewFormatCount
SetsviewFormatCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
viewFormatCount
SetsviewFormatCountwith the given value.- Parameters:
value- the value- Returns:
this
-
pViewFormats
ReturnspViewFormatsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pViewFormatsat the given index
-
pViewFormats
-
pViewFormats
SetspViewFormatswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pViewFormats
SetspViewFormatswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkFramebufferAttachmentImageInfo.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkFramebufferAttachmentImageInfo
-
asSlice
Creates a slice ofVkFramebufferAttachmentImageInfo.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkFramebufferAttachmentImageInfo
-
at
public VkFramebufferAttachmentImageInfo at(long index, Consumer<VkFramebufferAttachmentImageInfo> func) VisitsVkFramebufferAttachmentImageInfobuffer 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
-
usageAt
public int usageAt(long index) Returnsusageat the given index.- Parameters:
index- the index of the struct buffer- Returns:
usageat the given index
-
usageAt
Setsusagewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
widthAt
public int widthAt(long index) Returnswidthat the given index.- Parameters:
index- the index of the struct buffer- Returns:
widthat the given index
-
widthAt
Setswidthwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
heightAt
public int heightAt(long index) Returnsheightat the given index.- Parameters:
index- the index of the struct buffer- Returns:
heightat the given index
-
heightAt
Setsheightwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
layerCountAt
public int layerCountAt(long index) ReturnslayerCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
layerCountat the given index
-
layerCountAt
SetslayerCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
viewFormatCountAt
public int viewFormatCountAt(long index) ReturnsviewFormatCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
viewFormatCountat the given index
-
viewFormatCountAt
SetsviewFormatCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pViewFormatsAt
ReturnspViewFormatsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pViewFormatsat the given index
-
pViewFormatsAt
SetspViewFormatswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-