Class VkCopyMemoryToImageInfo
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkCopyMemoryToImageInfo
- All Implemented Interfaces:
Addressable
Represents VkCopyMemoryToImageInfo.
Layout
struct VkCopyMemoryToImageInfo {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkHostImageCopyFlags flags;
(uint64_t) VkImage dstImage;
(int) VkImageLayout dstImageLayout;
uint32_t regionCount;
const VkMemoryToImageCopy* pRegions;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkCopyMemoryToImageInfo.static final MemoryLayoutThe memory layout ofdstImage.static final MemoryLayoutThe memory layout ofdstImageLayout.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofpRegions.static final MemoryLayoutThe memory layout ofregionCount.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofdstImage.static final longThe byte offset ofdstImageLayout.static final longThe byte offset offlags.static final longThe byte offset ofpNext.static final longThe byte offset ofpRegions.static final longThe byte offset ofregionCount.static final longThe byte offset ofsType.static final VarHandlestatic final VarHandleTheVarHandleofdstImageLayoutof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofregionCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkCopyMemoryToImageInfo(MemorySegment segment, long elementCount) CreatesVkCopyMemoryToImageInfowith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkCopyMemoryToImageInfoalloc(SegmentAllocator allocator) Allocates aVkCopyMemoryToImageInfowith the given segment allocator.static VkCopyMemoryToImageInfoalloc(SegmentAllocator allocator, long count) Allocates aVkCopyMemoryToImageInfowith the given segment allocator and count.asSlice(long index) Creates a slice ofVkCopyMemoryToImageInfo.asSlice(long index, long count) Creates a slice ofVkCopyMemoryToImageInfo.at(long index, Consumer<VkCopyMemoryToImageInfo> func) VisitsVkCopyMemoryToImageInfobuffer at the given index.Copies from the given source.longdstImage()ReturnsdstImage.dstImage(long value) SetsdstImagewith the given value.static longdstImage(MemorySegment segment, long index) ReturnsdstImageat the given index.static voiddstImage(MemorySegment segment, long index, long value) SetsdstImagewith the given value at the given index.longdstImageAt(long index) ReturnsdstImageat the given index.dstImageAt(long index, long value) SetsdstImagewith the given value at the given index.intReturnsdstImageLayout.dstImageLayout(int value) SetsdstImageLayoutwith the given value.static intdstImageLayout(MemorySegment segment, long index) ReturnsdstImageLayoutat the given index.static voiddstImageLayout(MemorySegment segment, long index, int value) SetsdstImageLayoutwith the given value at the given index.intdstImageLayoutAt(long index) ReturnsdstImageLayoutat the given index.dstImageLayoutAt(long index, int value) SetsdstImageLayoutwith 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.static VkCopyMemoryToImageInfoof(MemorySegment segment) CreatesVkCopyMemoryToImageInfowith the given segment.static VkCopyMemoryToImageInfoofNative(MemorySegment segment) CreatesVkCopyMemoryToImageInfowith the given segment.static VkCopyMemoryToImageInfoofNative(MemorySegment segment, long count) CreatesVkCopyMemoryToImageInfowith 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.pRegions()ReturnspRegions.pRegions(MemorySegment value) SetspRegionswith the given value.static MemorySegmentpRegions(MemorySegment segment, long index) ReturnspRegionsat the given index.static voidpRegions(MemorySegment segment, long index, MemorySegment value) SetspRegionswith the given value at the given index.pRegionsAt(long index) ReturnspRegionsat the given index.pRegionsAt(long index, MemorySegment value) SetspRegionswith the given value at the given index.intReturnsregionCount.regionCount(int value) SetsregionCountwith the given value.static intregionCount(MemorySegment segment, long index) ReturnsregionCountat the given index.static voidregionCount(MemorySegment segment, long index, int value) SetsregionCountwith the given value at the given index.intregionCountAt(long index) ReturnsregionCountat the given index.regionCountAt(long index, int value) SetsregionCountwith 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.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkCopyMemoryToImageInfo. -
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_dstImage
public static final long OFFSET_dstImageThe byte offset ofdstImage. -
LAYOUT_dstImage
The memory layout ofdstImage. -
VH_dstImage
-
OFFSET_dstImageLayout
public static final long OFFSET_dstImageLayoutThe byte offset ofdstImageLayout. -
LAYOUT_dstImageLayout
The memory layout ofdstImageLayout. -
VH_dstImageLayout
-
OFFSET_regionCount
public static final long OFFSET_regionCountThe byte offset ofregionCount. -
LAYOUT_regionCount
The memory layout ofregionCount. -
VH_regionCount
-
OFFSET_pRegions
public static final long OFFSET_pRegionsThe byte offset ofpRegions. -
LAYOUT_pRegions
The memory layout ofpRegions. -
VH_pRegions
-
-
Constructor Details
-
VkCopyMemoryToImageInfo
CreatesVkCopyMemoryToImageInfowith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkCopyMemoryToImageInfowith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkCopyMemoryToImageInfowith 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
VkCopyMemoryToImageInfowith 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 aVkCopyMemoryToImageInfowith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkCopyMemoryToImageInfo
-
alloc
Allocates aVkCopyMemoryToImageInfowith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkCopyMemoryToImageInfo
-
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
-
dstImage
ReturnsdstImageat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstImageat the given index
-
dstImage
public long dstImage()ReturnsdstImage.- Returns:
dstImage
-
dstImage
SetsdstImagewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstImage
SetsdstImagewith the given value.- Parameters:
value- the value- Returns:
this
-
dstImageLayout
ReturnsdstImageLayoutat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstImageLayoutat the given index
-
dstImageLayout
public int dstImageLayout()ReturnsdstImageLayout.- Returns:
dstImageLayout
-
dstImageLayout
SetsdstImageLayoutwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstImageLayout
SetsdstImageLayoutwith the given value.- Parameters:
value- the value- Returns:
this
-
regionCount
ReturnsregionCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
regionCountat the given index
-
regionCount
public int regionCount()ReturnsregionCount.- Returns:
regionCount
-
regionCount
SetsregionCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
regionCount
SetsregionCountwith the given value.- Parameters:
value- the value- Returns:
this
-
pRegions
ReturnspRegionsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pRegionsat the given index
-
pRegions
-
pRegions
SetspRegionswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pRegions
SetspRegionswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkCopyMemoryToImageInfo.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkCopyMemoryToImageInfo
-
asSlice
Creates a slice ofVkCopyMemoryToImageInfo.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkCopyMemoryToImageInfo
-
at
VisitsVkCopyMemoryToImageInfobuffer 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
-
dstImageAt
public long dstImageAt(long index) ReturnsdstImageat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstImageat the given index
-
dstImageAt
SetsdstImagewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dstImageLayoutAt
public int dstImageLayoutAt(long index) ReturnsdstImageLayoutat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstImageLayoutat the given index
-
dstImageLayoutAt
SetsdstImageLayoutwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
regionCountAt
public int regionCountAt(long index) ReturnsregionCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
regionCountat the given index
-
regionCountAt
SetsregionCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pRegionsAt
ReturnspRegionsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pRegionsat the given index
-
pRegionsAt
SetspRegionswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-