Class VkVideoEncodeRateControlInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkVideoEncodeRateControlInfoKHR
- All Implemented Interfaces:
Addressable
Represents VkVideoEncodeRateControlInfoKHR.
Layout
struct VkVideoEncodeRateControlInfoKHR {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkVideoEncodeRateControlFlagsKHR flags;
(int) VkVideoEncodeRateControlModeFlagBitsKHR rateControlMode;
uint32_t layerCount;
const VkVideoEncodeRateControlLayerInfoKHR* pLayers;
uint32_t virtualBufferSizeInMs;
uint32_t initialVirtualBufferSizeInMs;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkVideoEncodeRateControlInfoKHR.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofinitialVirtualBufferSizeInMs.static final MemoryLayoutThe memory layout oflayerCount.static final MemoryLayoutThe memory layout ofpLayers.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofrateControlMode.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout ofvirtualBufferSizeInMs.static final longThe byte offset offlags.static final longThe byte offset ofinitialVirtualBufferSizeInMs.static final longThe byte offset oflayerCount.static final longThe byte offset ofpLayers.static final longThe byte offset ofpNext.static final longThe byte offset ofrateControlMode.static final longThe byte offset ofsType.static final longThe byte offset ofvirtualBufferSizeInMs.static final VarHandlestatic final VarHandleTheVarHandleofinitialVirtualBufferSizeInMsof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofrateControlModeof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofvirtualBufferSizeInMsof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkVideoEncodeRateControlInfoKHR(MemorySegment segment, long elementCount) CreatesVkVideoEncodeRateControlInfoKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkVideoEncodeRateControlInfoKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkVideoEncodeRateControlInfoKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkVideoEncodeRateControlInfoKHR.asSlice(long index, long count) Creates a slice ofVkVideoEncodeRateControlInfoKHR.at(long index, Consumer<VkVideoEncodeRateControlInfoKHR> func) VisitsVkVideoEncodeRateControlInfoKHRbuffer 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.intReturnsinitialVirtualBufferSizeInMs.initialVirtualBufferSizeInMs(int value) SetsinitialVirtualBufferSizeInMswith the given value.static intinitialVirtualBufferSizeInMs(MemorySegment segment, long index) ReturnsinitialVirtualBufferSizeInMsat the given index.static voidinitialVirtualBufferSizeInMs(MemorySegment segment, long index, int value) SetsinitialVirtualBufferSizeInMswith the given value at the given index.intinitialVirtualBufferSizeInMsAt(long index) ReturnsinitialVirtualBufferSizeInMsat the given index.initialVirtualBufferSizeInMsAt(long index, int value) SetsinitialVirtualBufferSizeInMswith 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) CreatesVkVideoEncodeRateControlInfoKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkVideoEncodeRateControlInfoKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkVideoEncodeRateControlInfoKHRwith the given segment.pLayers()ReturnspLayers.pLayers(MemorySegment value) SetspLayerswith the given value.static MemorySegmentpLayers(MemorySegment segment, long index) ReturnspLayersat the given index.static voidpLayers(MemorySegment segment, long index, MemorySegment value) SetspLayerswith the given value at the given index.pLayersAt(long index) ReturnspLayersat the given index.pLayersAt(long index, MemorySegment value) SetspLayerswith 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.intReturnsrateControlMode.rateControlMode(int value) SetsrateControlModewith the given value.static intrateControlMode(MemorySegment segment, long index) ReturnsrateControlModeat the given index.static voidrateControlMode(MemorySegment segment, long index, int value) SetsrateControlModewith the given value at the given index.intrateControlModeAt(long index) ReturnsrateControlModeat the given index.rateControlModeAt(long index, int value) SetsrateControlModewith 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.intReturnsvirtualBufferSizeInMs.virtualBufferSizeInMs(int value) SetsvirtualBufferSizeInMswith the given value.static intvirtualBufferSizeInMs(MemorySegment segment, long index) ReturnsvirtualBufferSizeInMsat the given index.static voidvirtualBufferSizeInMs(MemorySegment segment, long index, int value) SetsvirtualBufferSizeInMswith the given value at the given index.intvirtualBufferSizeInMsAt(long index) ReturnsvirtualBufferSizeInMsat the given index.virtualBufferSizeInMsAt(long index, int value) SetsvirtualBufferSizeInMswith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkVideoEncodeRateControlInfoKHR. -
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_rateControlMode
public static final long OFFSET_rateControlModeThe byte offset ofrateControlMode. -
LAYOUT_rateControlMode
The memory layout ofrateControlMode. -
VH_rateControlMode
-
OFFSET_layerCount
public static final long OFFSET_layerCountThe byte offset oflayerCount. -
LAYOUT_layerCount
The memory layout oflayerCount. -
VH_layerCount
-
OFFSET_pLayers
public static final long OFFSET_pLayersThe byte offset ofpLayers. -
LAYOUT_pLayers
The memory layout ofpLayers. -
VH_pLayers
-
OFFSET_virtualBufferSizeInMs
public static final long OFFSET_virtualBufferSizeInMsThe byte offset ofvirtualBufferSizeInMs. -
LAYOUT_virtualBufferSizeInMs
The memory layout ofvirtualBufferSizeInMs. -
VH_virtualBufferSizeInMs
-
OFFSET_initialVirtualBufferSizeInMs
public static final long OFFSET_initialVirtualBufferSizeInMsThe byte offset ofinitialVirtualBufferSizeInMs. -
LAYOUT_initialVirtualBufferSizeInMs
The memory layout ofinitialVirtualBufferSizeInMs. -
VH_initialVirtualBufferSizeInMs
-
-
Constructor Details
-
VkVideoEncodeRateControlInfoKHR
CreatesVkVideoEncodeRateControlInfoKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkVideoEncodeRateControlInfoKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkVideoEncodeRateControlInfoKHRwith 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
VkVideoEncodeRateControlInfoKHRwith 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 aVkVideoEncodeRateControlInfoKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkVideoEncodeRateControlInfoKHR
-
alloc
Allocates aVkVideoEncodeRateControlInfoKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkVideoEncodeRateControlInfoKHR
-
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
-
rateControlMode
ReturnsrateControlModeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
rateControlModeat the given index
-
rateControlMode
public int rateControlMode()ReturnsrateControlMode.- Returns:
rateControlMode
-
rateControlMode
SetsrateControlModewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
rateControlMode
SetsrateControlModewith 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
-
pLayers
ReturnspLayersat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pLayersat the given index
-
pLayers
-
pLayers
SetspLayerswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pLayers
SetspLayerswith the given value.- Parameters:
value- the value- Returns:
this
-
virtualBufferSizeInMs
ReturnsvirtualBufferSizeInMsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
virtualBufferSizeInMsat the given index
-
virtualBufferSizeInMs
public int virtualBufferSizeInMs()ReturnsvirtualBufferSizeInMs.- Returns:
virtualBufferSizeInMs
-
virtualBufferSizeInMs
SetsvirtualBufferSizeInMswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
virtualBufferSizeInMs
SetsvirtualBufferSizeInMswith the given value.- Parameters:
value- the value- Returns:
this
-
initialVirtualBufferSizeInMs
ReturnsinitialVirtualBufferSizeInMsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
initialVirtualBufferSizeInMsat the given index
-
initialVirtualBufferSizeInMs
public int initialVirtualBufferSizeInMs()ReturnsinitialVirtualBufferSizeInMs.- Returns:
initialVirtualBufferSizeInMs
-
initialVirtualBufferSizeInMs
SetsinitialVirtualBufferSizeInMswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
initialVirtualBufferSizeInMs
SetsinitialVirtualBufferSizeInMswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkVideoEncodeRateControlInfoKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkVideoEncodeRateControlInfoKHR
-
asSlice
Creates a slice ofVkVideoEncodeRateControlInfoKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkVideoEncodeRateControlInfoKHR
-
at
public VkVideoEncodeRateControlInfoKHR at(long index, Consumer<VkVideoEncodeRateControlInfoKHR> func) VisitsVkVideoEncodeRateControlInfoKHRbuffer 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
-
rateControlModeAt
public int rateControlModeAt(long index) ReturnsrateControlModeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
rateControlModeat the given index
-
rateControlModeAt
SetsrateControlModewith 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
-
pLayersAt
ReturnspLayersat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pLayersat the given index
-
pLayersAt
SetspLayerswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
virtualBufferSizeInMsAt
public int virtualBufferSizeInMsAt(long index) ReturnsvirtualBufferSizeInMsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
virtualBufferSizeInMsat the given index
-
virtualBufferSizeInMsAt
SetsvirtualBufferSizeInMswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
initialVirtualBufferSizeInMsAt
public int initialVirtualBufferSizeInMsAt(long index) ReturnsinitialVirtualBufferSizeInMsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
initialVirtualBufferSizeInMsat the given index
-
initialVirtualBufferSizeInMsAt
SetsinitialVirtualBufferSizeInMswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-