Class VkVideoPictureResourceInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkVideoPictureResourceInfoKHR
- All Implemented Interfaces:
Addressable
Represents VkVideoPictureResourceInfoKHR.
Layout
struct VkVideoPictureResourceInfoKHR {
(int) VkStructureType sType;
const void* pNext;
(struct VkOffset2D) VkOffset2D codedOffset;
(struct VkExtent2D) VkExtent2D codedExtent;
uint32_t baseArrayLayer;
(uint64_t) VkImageView imageViewBinding;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkVideoPictureResourceInfoKHR.static final MemoryLayoutThe memory layout ofbaseArrayLayer.static final MemoryLayoutThe memory layout ofcodedExtent.static final MemoryLayoutThe memory layout ofcodedOffset.static final MemoryLayoutThe memory layout ofimageViewBinding.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofbaseArrayLayer.static final longThe byte offset ofcodedExtent.static final longThe byte offset ofcodedOffset.static final longThe byte offset ofimageViewBinding.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofbaseArrayLayerof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofimageViewBindingof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkVideoPictureResourceInfoKHR(MemorySegment segment, long elementCount) CreatesVkVideoPictureResourceInfoKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkVideoPictureResourceInfoKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkVideoPictureResourceInfoKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkVideoPictureResourceInfoKHR.asSlice(long index, long count) Creates a slice ofVkVideoPictureResourceInfoKHR.at(long index, Consumer<VkVideoPictureResourceInfoKHR> func) VisitsVkVideoPictureResourceInfoKHRbuffer at the given index.intReturnsbaseArrayLayer.baseArrayLayer(int value) SetsbaseArrayLayerwith the given value.static intbaseArrayLayer(MemorySegment segment, long index) ReturnsbaseArrayLayerat the given index.static voidbaseArrayLayer(MemorySegment segment, long index, int value) SetsbaseArrayLayerwith the given value at the given index.intbaseArrayLayerAt(long index) ReturnsbaseArrayLayerat the given index.baseArrayLayerAt(long index, int value) SetsbaseArrayLayerwith the given value at the given index.ReturnscodedExtent.codedExtent(MemorySegment value) SetscodedExtentwith the given value.static MemorySegmentcodedExtent(MemorySegment segment, long index) ReturnscodedExtentat the given index.static voidcodedExtent(MemorySegment segment, long index, MemorySegment value) SetscodedExtentwith the given value at the given index.codedExtent(Consumer<VkExtent2D> func) AcceptscodedExtentwith the given function.codedExtentAt(long index) ReturnscodedExtentat the given index.codedExtentAt(long index, MemorySegment value) SetscodedExtentwith the given value at the given index.codedExtentAt(long index, Consumer<VkExtent2D> func) AcceptscodedExtentwith the given function.ReturnscodedOffset.codedOffset(MemorySegment value) SetscodedOffsetwith the given value.static MemorySegmentcodedOffset(MemorySegment segment, long index) ReturnscodedOffsetat the given index.static voidcodedOffset(MemorySegment segment, long index, MemorySegment value) SetscodedOffsetwith the given value at the given index.codedOffset(Consumer<VkOffset2D> func) AcceptscodedOffsetwith the given function.codedOffsetAt(long index) ReturnscodedOffsetat the given index.codedOffsetAt(long index, MemorySegment value) SetscodedOffsetwith the given value at the given index.codedOffsetAt(long index, Consumer<VkOffset2D> func) AcceptscodedOffsetwith the given function.Copies from the given source.longReturnsimageViewBinding.imageViewBinding(long value) SetsimageViewBindingwith the given value.static longimageViewBinding(MemorySegment segment, long index) ReturnsimageViewBindingat the given index.static voidimageViewBinding(MemorySegment segment, long index, long value) SetsimageViewBindingwith the given value at the given index.longimageViewBindingAt(long index) ReturnsimageViewBindingat the given index.imageViewBindingAt(long index, long value) SetsimageViewBindingwith the given value at the given index.of(MemorySegment segment) CreatesVkVideoPictureResourceInfoKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkVideoPictureResourceInfoKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkVideoPictureResourceInfoKHRwith 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.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 ofVkVideoPictureResourceInfoKHR. -
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_codedOffset
public static final long OFFSET_codedOffsetThe byte offset ofcodedOffset. -
LAYOUT_codedOffset
The memory layout ofcodedOffset. -
OFFSET_codedExtent
public static final long OFFSET_codedExtentThe byte offset ofcodedExtent. -
LAYOUT_codedExtent
The memory layout ofcodedExtent. -
OFFSET_baseArrayLayer
public static final long OFFSET_baseArrayLayerThe byte offset ofbaseArrayLayer. -
LAYOUT_baseArrayLayer
The memory layout ofbaseArrayLayer. -
VH_baseArrayLayer
-
OFFSET_imageViewBinding
public static final long OFFSET_imageViewBindingThe byte offset ofimageViewBinding. -
LAYOUT_imageViewBinding
The memory layout ofimageViewBinding. -
VH_imageViewBinding
-
-
Constructor Details
-
VkVideoPictureResourceInfoKHR
CreatesVkVideoPictureResourceInfoKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkVideoPictureResourceInfoKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkVideoPictureResourceInfoKHRwith 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
VkVideoPictureResourceInfoKHRwith 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 aVkVideoPictureResourceInfoKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkVideoPictureResourceInfoKHR
-
alloc
Allocates aVkVideoPictureResourceInfoKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkVideoPictureResourceInfoKHR
-
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
-
codedOffset
ReturnscodedOffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
codedOffsetat the given index
-
codedOffset
-
codedOffset
SetscodedOffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
codedOffset
SetscodedOffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
codedOffset
AcceptscodedOffsetwith the given function.- Parameters:
func- the function- Returns:
this
-
codedExtent
ReturnscodedExtentat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
codedExtentat the given index
-
codedExtent
-
codedExtent
SetscodedExtentwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
codedExtent
SetscodedExtentwith the given value.- Parameters:
value- the value- Returns:
this
-
codedExtent
AcceptscodedExtentwith the given function.- Parameters:
func- the function- Returns:
this
-
baseArrayLayer
ReturnsbaseArrayLayerat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
baseArrayLayerat the given index
-
baseArrayLayer
public int baseArrayLayer()ReturnsbaseArrayLayer.- Returns:
baseArrayLayer
-
baseArrayLayer
SetsbaseArrayLayerwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
baseArrayLayer
SetsbaseArrayLayerwith the given value.- Parameters:
value- the value- Returns:
this
-
imageViewBinding
ReturnsimageViewBindingat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
imageViewBindingat the given index
-
imageViewBinding
public long imageViewBinding()ReturnsimageViewBinding.- Returns:
imageViewBinding
-
imageViewBinding
SetsimageViewBindingwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
imageViewBinding
SetsimageViewBindingwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkVideoPictureResourceInfoKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkVideoPictureResourceInfoKHR
-
asSlice
Creates a slice ofVkVideoPictureResourceInfoKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkVideoPictureResourceInfoKHR
-
at
VisitsVkVideoPictureResourceInfoKHRbuffer 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
-
codedOffsetAt
ReturnscodedOffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
codedOffsetat the given index
-
codedOffsetAt
SetscodedOffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
codedOffsetAt
AcceptscodedOffsetwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
codedExtentAt
ReturnscodedExtentat the given index.- Parameters:
index- the index of the struct buffer- Returns:
codedExtentat the given index
-
codedExtentAt
SetscodedExtentwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
codedExtentAt
AcceptscodedExtentwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
baseArrayLayerAt
public int baseArrayLayerAt(long index) ReturnsbaseArrayLayerat the given index.- Parameters:
index- the index of the struct buffer- Returns:
baseArrayLayerat the given index
-
baseArrayLayerAt
SetsbaseArrayLayerwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
imageViewBindingAt
public long imageViewBindingAt(long index) ReturnsimageViewBindingat the given index.- Parameters:
index- the index of the struct buffer- Returns:
imageViewBindingat the given index
-
imageViewBindingAt
SetsimageViewBindingwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-