Package org.lwjgl.vulkan
Class VkVideoEncodeInfoKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkVideoEncodeInfoKHR {
VkStructureType sType;
void const * pNext;
VkVideoEncodeFlagsKHR flags;
VkBuffer dstBuffer;
VkDeviceSize dstBufferOffset;
VkDeviceSize dstBufferRange;
{@link VkVideoPictureResourceInfoKHR VkVideoPictureResourceInfoKHR} srcPictureResource;
{@link VkVideoReferenceSlotInfoKHR VkVideoReferenceSlotInfoKHR} const * pSetupReferenceSlot;
uint32_t referenceSlotCount;
{@link VkVideoReferenceSlotInfoKHR VkVideoReferenceSlotInfoKHR} const * pReferenceSlots;
uint32_t precedingExternallyEncodedBytes;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkVideoEncodeInfoKHR
(ByteBuffer container) Creates aVkVideoEncodeInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkVideoEncodeInfoKHR
calloc()
Returns a newVkVideoEncodeInfoKHR
instance allocated withmemCalloc
.static VkVideoEncodeInfoKHR.Buffer
calloc
(int capacity) Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withmemCalloc
.static VkVideoEncodeInfoKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoEncodeInfoKHR
calloc
(MemoryStack stack) Returns a newVkVideoEncodeInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoEncodeInfoKHR
create()
Returns a newVkVideoEncodeInfoKHR
instance allocated withBufferUtils
.static VkVideoEncodeInfoKHR.Buffer
create
(int capacity) Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withBufferUtils
.static VkVideoEncodeInfoKHR
create
(long address) Returns a newVkVideoEncodeInfoKHR
instance for the specified memory address.static VkVideoEncodeInfoKHR.Buffer
create
(long address, int capacity) Create aVkVideoEncodeInfoKHR.Buffer
instance at the specified memory.static @Nullable VkVideoEncodeInfoKHR
createSafe
(long address) static @Nullable VkVideoEncodeInfoKHR.Buffer
createSafe
(long address, int capacity) long
dstBuffer
(long value) Sets the specified value to thedstBuffer
field.long
dstBufferOffset
(long value) Sets the specified value to thedstBufferOffset
field.long
dstBufferRange
(long value) Sets the specified value to thedstBufferRange
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static VkVideoEncodeInfoKHR
malloc()
Returns a newVkVideoEncodeInfoKHR
instance allocated withmemAlloc
.static VkVideoEncodeInfoKHR.Buffer
malloc
(int capacity) Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withmemAlloc
.static VkVideoEncodeInfoKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkVideoEncodeInfoKHR
malloc
(MemoryStack stack) Returns a newVkVideoEncodeInfoKHR
instance allocated on the specifiedMemoryStack
.static long
ndstBuffer
(long struct) Unsafe version ofdstBuffer()
.static void
ndstBuffer
(long struct, long value) Unsafe version ofdstBuffer
.static long
ndstBufferOffset
(long struct) Unsafe version ofdstBufferOffset()
.static void
ndstBufferOffset
(long struct, long value) Unsafe version ofdstBufferOffset
.static long
ndstBufferRange
(long struct) Unsafe version ofdstBufferRange()
.static void
ndstBufferRange
(long struct, long value) Unsafe version ofdstBufferRange
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nprecedingExternallyEncodedBytes
(long struct) Unsafe version ofprecedingExternallyEncodedBytes()
.static void
nprecedingExternallyEncodedBytes
(long struct, int value) Unsafe version ofprecedingExternallyEncodedBytes
.static @Nullable VkVideoReferenceSlotInfoKHR.Buffer
npReferenceSlots
(long struct) Unsafe version ofpReferenceSlots()
.static void
npReferenceSlots
(long struct, @Nullable VkVideoReferenceSlotInfoKHR.Buffer value) Unsafe version ofpReferenceSlots
.static @Nullable VkVideoReferenceSlotInfoKHR
npSetupReferenceSlot
(long struct) Unsafe version ofpSetupReferenceSlot()
.static void
npSetupReferenceSlot
(long struct, @Nullable VkVideoReferenceSlotInfoKHR value) Unsafe version ofpSetupReferenceSlot
.static int
nreferenceSlotCount
(long struct) Unsafe version ofreferenceSlotCount()
.static void
nreferenceSlotCount
(long struct, int value) Sets the specified value to thereferenceSlotCount
field of the specifiedstruct
.nsrcPictureResource
(long struct) Unsafe version ofsrcPictureResource()
.static void
nsrcPictureResource
(long struct, VkVideoPictureResourceInfoKHR value) Unsafe version ofsrcPictureResource
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkVideoEncodeAV1PictureInfoKHR
value to thepNext
chain.Prepends the specifiedVkVideoEncodeH264PictureInfoKHR
value to thepNext
chain.Prepends the specifiedVkVideoEncodeH265PictureInfoKHR
value to thepNext
chain.Prepends the specifiedVkVideoEncodeQuantizationMapInfoKHR
value to thepNext
chain.pNext
(VkVideoInlineQueryInfoKHR value) Prepends the specifiedVkVideoInlineQueryInfoKHR
value to thepNext
chain.int
precedingExternallyEncodedBytes
(int value) Sets the specified value to theprecedingExternallyEncodedBytes
field.@Nullable VkVideoReferenceSlotInfoKHR.Buffer
pReferenceSlots
(@Nullable VkVideoReferenceSlotInfoKHR.Buffer value) Sets the address of the specifiedVkVideoReferenceSlotInfoKHR.Buffer
to thepReferenceSlots
field.@Nullable VkVideoReferenceSlotInfoKHR
pSetupReferenceSlot
(@Nullable VkVideoReferenceSlotInfoKHR value) Sets the address of the specifiedVkVideoReferenceSlotInfoKHR
to thepSetupReferenceSlot
field.int
set
(int sType, long pNext, int flags, long dstBuffer, long dstBufferOffset, long dstBufferRange, VkVideoPictureResourceInfoKHR srcPictureResource, @Nullable VkVideoReferenceSlotInfoKHR pSetupReferenceSlot, @Nullable VkVideoReferenceSlotInfoKHR.Buffer pReferenceSlots, int precedingExternallyEncodedBytes) Initializes this struct with the specified values.set
(VkVideoEncodeInfoKHR src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Passes thesrcPictureResource
field to the specifiedConsumer
.Copies the specifiedVkVideoPictureResourceInfoKHR
to thesrcPictureResource
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHR
value to thesType
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
DSTBUFFER
public static final int DSTBUFFERThe struct member offsets. -
DSTBUFFEROFFSET
public static final int DSTBUFFEROFFSETThe struct member offsets. -
DSTBUFFERRANGE
public static final int DSTBUFFERRANGEThe struct member offsets. -
SRCPICTURERESOURCE
public static final int SRCPICTURERESOURCEThe struct member offsets. -
PSETUPREFERENCESLOT
public static final int PSETUPREFERENCESLOTThe struct member offsets. -
REFERENCESLOTCOUNT
public static final int REFERENCESLOTCOUNTThe struct member offsets. -
PREFERENCESLOTS
public static final int PREFERENCESLOTSThe struct member offsets. -
PRECEDINGEXTERNALLYENCODEDBYTES
public static final int PRECEDINGEXTERNALLYENCODEDBYTESThe struct member offsets.
-
-
Constructor Details
-
VkVideoEncodeInfoKHR
Creates aVkVideoEncodeInfoKHR
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkVideoEncodeInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
dstBuffer
public long dstBuffer()- Returns:
- the value of the
dstBuffer
field.
-
dstBufferOffset
public long dstBufferOffset()- Returns:
- the value of the
dstBufferOffset
field.
-
dstBufferRange
public long dstBufferRange()- Returns:
- the value of the
dstBufferRange
field.
-
srcPictureResource
- Returns:
- a
VkVideoPictureResourceInfoKHR
view of thesrcPictureResource
field.
-
pSetupReferenceSlot
- Returns:
- a
VkVideoReferenceSlotInfoKHR
view of the struct pointed to by thepSetupReferenceSlot
field.
-
referenceSlotCount
public int referenceSlotCount()- Returns:
- the value of the
referenceSlotCount
field.
-
pReferenceSlots
- Returns:
- a
VkVideoReferenceSlotInfoKHR.Buffer
view of the struct array pointed to by thepReferenceSlots
field.
-
precedingExternallyEncodedBytes
public int precedingExternallyEncodedBytes()- Returns:
- the value of the
precedingExternallyEncodedBytes
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHR
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkVideoEncodeAV1PictureInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoEncodeH264PictureInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoEncodeH265PictureInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoEncodeQuantizationMapInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoInlineQueryInfoKHR
value to thepNext
chain. -
flags
Sets the specified value to theflags
field. -
dstBuffer
Sets the specified value to thedstBuffer
field. -
dstBufferOffset
Sets the specified value to thedstBufferOffset
field. -
dstBufferRange
Sets the specified value to thedstBufferRange
field. -
srcPictureResource
Copies the specifiedVkVideoPictureResourceInfoKHR
to thesrcPictureResource
field. -
srcPictureResource
Passes thesrcPictureResource
field to the specifiedConsumer
. -
pSetupReferenceSlot
Sets the address of the specifiedVkVideoReferenceSlotInfoKHR
to thepSetupReferenceSlot
field. -
pReferenceSlots
Sets the address of the specifiedVkVideoReferenceSlotInfoKHR.Buffer
to thepReferenceSlots
field. -
precedingExternallyEncodedBytes
Sets the specified value to theprecedingExternallyEncodedBytes
field. -
set
public VkVideoEncodeInfoKHR set(int sType, long pNext, int flags, long dstBuffer, long dstBufferOffset, long dstBufferRange, VkVideoPictureResourceInfoKHR srcPictureResource, @Nullable VkVideoReferenceSlotInfoKHR pSetupReferenceSlot, @Nullable VkVideoReferenceSlotInfoKHR.Buffer pReferenceSlots, int precedingExternallyEncodedBytes) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkVideoEncodeInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkVideoEncodeInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkVideoEncodeInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkVideoEncodeInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkVideoEncodeInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkVideoEncodeInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
ndstBuffer
public static long ndstBuffer(long struct) Unsafe version ofdstBuffer()
. -
ndstBufferOffset
public static long ndstBufferOffset(long struct) Unsafe version ofdstBufferOffset()
. -
ndstBufferRange
public static long ndstBufferRange(long struct) Unsafe version ofdstBufferRange()
. -
nsrcPictureResource
Unsafe version ofsrcPictureResource()
. -
npSetupReferenceSlot
Unsafe version ofpSetupReferenceSlot()
. -
nreferenceSlotCount
public static int nreferenceSlotCount(long struct) Unsafe version ofreferenceSlotCount()
. -
npReferenceSlots
Unsafe version ofpReferenceSlots()
. -
nprecedingExternallyEncodedBytes
public static int nprecedingExternallyEncodedBytes(long struct) Unsafe version ofprecedingExternallyEncodedBytes()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
ndstBuffer
public static void ndstBuffer(long struct, long value) Unsafe version ofdstBuffer
. -
ndstBufferOffset
public static void ndstBufferOffset(long struct, long value) Unsafe version ofdstBufferOffset
. -
ndstBufferRange
public static void ndstBufferRange(long struct, long value) Unsafe version ofdstBufferRange
. -
nsrcPictureResource
Unsafe version ofsrcPictureResource
. -
npSetupReferenceSlot
Unsafe version ofpSetupReferenceSlot
. -
nreferenceSlotCount
public static void nreferenceSlotCount(long struct, int value) Sets the specified value to thereferenceSlotCount
field of the specifiedstruct
. -
npReferenceSlots
public static void npReferenceSlots(long struct, @Nullable VkVideoReferenceSlotInfoKHR.Buffer value) Unsafe version ofpReferenceSlots
. -
nprecedingExternallyEncodedBytes
public static void nprecedingExternallyEncodedBytes(long struct, int value) Unsafe version ofprecedingExternallyEncodedBytes
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-