Class VkFramebufferCreateInfo
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkFramebufferCreateInfo
- All Implemented Interfaces:
Addressable
Represents VkFramebufferCreateInfo.
Layout
struct VkFramebufferCreateInfo {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkFramebufferCreateFlags flags;
(uint64_t) VkRenderPass renderPass;
uint32_t attachmentCount;
const VkImageView* pAttachments;
uint32_t width;
uint32_t height;
uint32_t layers;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkFramebufferCreateInfo.static final MemoryLayoutThe memory layout ofattachmentCount.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofheight.static final MemoryLayoutThe memory layout oflayers.static final MemoryLayoutThe memory layout ofpAttachments.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofrenderPass.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout ofwidth.static final longThe byte offset ofattachmentCount.static final longThe byte offset offlags.static final longThe byte offset ofheight.static final longThe byte offset oflayers.static final longThe byte offset ofpAttachments.static final longThe byte offset ofpNext.static final longThe byte offset ofrenderPass.static final longThe byte offset ofsType.static final longThe byte offset ofwidth.static final VarHandleTheVarHandleofattachmentCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofpAttachmentsof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkFramebufferCreateInfo(MemorySegment segment, long elementCount) CreatesVkFramebufferCreateInfowith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkFramebufferCreateInfoalloc(SegmentAllocator allocator) Allocates aVkFramebufferCreateInfowith the given segment allocator.static VkFramebufferCreateInfoalloc(SegmentAllocator allocator, long count) Allocates aVkFramebufferCreateInfowith the given segment allocator and count.asSlice(long index) Creates a slice ofVkFramebufferCreateInfo.asSlice(long index, long count) Creates a slice ofVkFramebufferCreateInfo.at(long index, Consumer<VkFramebufferCreateInfo> func) VisitsVkFramebufferCreateInfobuffer at the given index.intReturnsattachmentCount.attachmentCount(int value) SetsattachmentCountwith the given value.static intattachmentCount(MemorySegment segment, long index) ReturnsattachmentCountat the given index.static voidattachmentCount(MemorySegment segment, long index, int value) SetsattachmentCountwith the given value at the given index.intattachmentCountAt(long index) ReturnsattachmentCountat the given index.attachmentCountAt(long index, int value) SetsattachmentCountwith the given value 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.intlayers()Returnslayers.layers(int value) Setslayerswith the given value.static intlayers(MemorySegment segment, long index) Returnslayersat the given index.static voidlayers(MemorySegment segment, long index, int value) Setslayerswith the given value at the given index.intlayersAt(long index) Returnslayersat the given index.layersAt(long index, int value) Setslayerswith the given value at the given index.static VkFramebufferCreateInfoof(MemorySegment segment) CreatesVkFramebufferCreateInfowith the given segment.static VkFramebufferCreateInfoofNative(MemorySegment segment) CreatesVkFramebufferCreateInfowith the given segment.static VkFramebufferCreateInfoofNative(MemorySegment segment, long count) CreatesVkFramebufferCreateInfowith the given segment.ReturnspAttachments.pAttachments(MemorySegment value) SetspAttachmentswith the given value.static MemorySegmentpAttachments(MemorySegment segment, long index) ReturnspAttachmentsat the given index.static voidpAttachments(MemorySegment segment, long index, MemorySegment value) SetspAttachmentswith the given value at the given index.pAttachmentsAt(long index) ReturnspAttachmentsat the given index.pAttachmentsAt(long index, MemorySegment value) SetspAttachmentswith the given value at the given index.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.longReturnsrenderPass.renderPass(long value) SetsrenderPasswith the given value.static longrenderPass(MemorySegment segment, long index) ReturnsrenderPassat the given index.static voidrenderPass(MemorySegment segment, long index, long value) SetsrenderPasswith the given value at the given index.longrenderPassAt(long index) ReturnsrenderPassat the given index.renderPassAt(long index, long value) SetsrenderPasswith 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.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 ofVkFramebufferCreateInfo. -
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_renderPass
public static final long OFFSET_renderPassThe byte offset ofrenderPass. -
LAYOUT_renderPass
The memory layout ofrenderPass. -
VH_renderPass
-
OFFSET_attachmentCount
public static final long OFFSET_attachmentCountThe byte offset ofattachmentCount. -
LAYOUT_attachmentCount
The memory layout ofattachmentCount. -
VH_attachmentCount
-
OFFSET_pAttachments
public static final long OFFSET_pAttachmentsThe byte offset ofpAttachments. -
LAYOUT_pAttachments
The memory layout ofpAttachments. -
VH_pAttachments
-
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_layers
public static final long OFFSET_layersThe byte offset oflayers. -
LAYOUT_layers
The memory layout oflayers. -
VH_layers
-
-
Constructor Details
-
VkFramebufferCreateInfo
CreatesVkFramebufferCreateInfowith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkFramebufferCreateInfowith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkFramebufferCreateInfowith 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
VkFramebufferCreateInfowith 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 aVkFramebufferCreateInfowith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkFramebufferCreateInfo
-
alloc
Allocates aVkFramebufferCreateInfowith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkFramebufferCreateInfo
-
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
-
renderPass
ReturnsrenderPassat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
renderPassat the given index
-
renderPass
public long renderPass()ReturnsrenderPass.- Returns:
renderPass
-
renderPass
SetsrenderPasswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
renderPass
SetsrenderPasswith the given value.- Parameters:
value- the value- Returns:
this
-
attachmentCount
ReturnsattachmentCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
attachmentCountat the given index
-
attachmentCount
public int attachmentCount()ReturnsattachmentCount.- Returns:
attachmentCount
-
attachmentCount
SetsattachmentCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
attachmentCount
SetsattachmentCountwith the given value.- Parameters:
value- the value- Returns:
this
-
pAttachments
ReturnspAttachmentsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pAttachmentsat the given index
-
pAttachments
-
pAttachments
SetspAttachmentswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pAttachments
SetspAttachmentswith 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
-
layers
Returnslayersat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
layersat the given index
-
layers
public int layers()Returnslayers.- Returns:
layers
-
layers
Setslayerswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
layers
Setslayerswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkFramebufferCreateInfo.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkFramebufferCreateInfo
-
asSlice
Creates a slice ofVkFramebufferCreateInfo.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkFramebufferCreateInfo
-
at
VisitsVkFramebufferCreateInfobuffer 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
-
renderPassAt
public long renderPassAt(long index) ReturnsrenderPassat the given index.- Parameters:
index- the index of the struct buffer- Returns:
renderPassat the given index
-
renderPassAt
SetsrenderPasswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
attachmentCountAt
public int attachmentCountAt(long index) ReturnsattachmentCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
attachmentCountat the given index
-
attachmentCountAt
SetsattachmentCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pAttachmentsAt
ReturnspAttachmentsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pAttachmentsat the given index
-
pAttachmentsAt
SetspAttachmentswith 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
-
layersAt
public int layersAt(long index) Returnslayersat the given index.- Parameters:
index- the index of the struct buffer- Returns:
layersat the given index
-
layersAt
Setslayerswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-