Package org.lwjgl.vulkan
Class VkVideoEncodeInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkVideoEncodeInfoKHR,VkVideoEncodeInfoKHR.Buffer>
-
- org.lwjgl.vulkan.VkVideoEncodeInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkVideoEncodeInfoKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkVideoEncodeInfoKHR
public static class VkVideoEncodeInfoKHR.Buffer extends org.lwjgl.system.StructBuffer<VkVideoEncodeInfoKHR,VkVideoEncodeInfoKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkVideoEncodeInfoKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkVideoEncodeInfoKHR.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byVkVideoEncodeInfoKHR.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
sType
public int sType()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.sType()field.
-
pNext
public long pNext()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.pNext()field.
-
flags
public int flags()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.flags()field.
-
qualityLevel
public int qualityLevel()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.qualityLevel()field.
-
codedExtent
public VkExtent2D codedExtent()
- Returns:
- a
VkExtent2Dview of theVkVideoEncodeInfoKHR.codedExtent()field.
-
dstBitstreamBuffer
public long dstBitstreamBuffer()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.dstBitstreamBuffer()field.
-
dstBitstreamBufferOffset
public long dstBitstreamBufferOffset()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.dstBitstreamBufferOffset()field.
-
dstBitstreamBufferMaxRange
public long dstBitstreamBufferMaxRange()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.dstBitstreamBufferMaxRange()field.
-
srcPictureResource
public VkVideoPictureResourceKHR srcPictureResource()
- Returns:
- a
VkVideoPictureResourceKHRview of theVkVideoEncodeInfoKHR.srcPictureResource()field.
-
pSetupReferenceSlot
public VkVideoReferenceSlotKHR pSetupReferenceSlot()
- Returns:
- a
VkVideoReferenceSlotKHRview of the struct pointed to by theVkVideoEncodeInfoKHR.pSetupReferenceSlot()field.
-
referenceSlotCount
public int referenceSlotCount()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.referenceSlotCount()field.
-
pReferenceSlots
@Nullable public VkVideoReferenceSlotKHR.Buffer pReferenceSlots()
- Returns:
- a
VkVideoReferenceSlotKHR.Bufferview of the struct array pointed to by theVkVideoEncodeInfoKHR.pReferenceSlots()field.
-
precedingExternallyEncodedBytes
public int precedingExternallyEncodedBytes()
- Returns:
- the value of the
VkVideoEncodeInfoKHR.precedingExternallyEncodedBytes()field.
-
sType
public VkVideoEncodeInfoKHR.Buffer sType(int value)
Sets the specified value to theVkVideoEncodeInfoKHR.sType()field.
-
sType$Default
public VkVideoEncodeInfoKHR.Buffer sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHRvalue to theVkVideoEncodeInfoKHR.sType()field.
-
pNext
public VkVideoEncodeInfoKHR.Buffer pNext(long value)
Sets the specified value to theVkVideoEncodeInfoKHR.pNext()field.
-
pNext
public VkVideoEncodeInfoKHR.Buffer pNext(VkVideoEncodeH264EmitPictureParametersEXT value)
Prepends the specifiedVkVideoEncodeH264EmitPictureParametersEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR.Buffer pNext(VkVideoEncodeH264VclFrameInfoEXT value)
Prepends the specifiedVkVideoEncodeH264VclFrameInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR.Buffer pNext(VkVideoEncodeH265EmitPictureParametersEXT value)
Prepends the specifiedVkVideoEncodeH265EmitPictureParametersEXTvalue to thepNextchain.
-
pNext
public VkVideoEncodeInfoKHR.Buffer pNext(VkVideoEncodeH265VclFrameInfoEXT value)
Prepends the specifiedVkVideoEncodeH265VclFrameInfoEXTvalue to thepNextchain.
-
flags
public VkVideoEncodeInfoKHR.Buffer flags(int value)
Sets the specified value to theVkVideoEncodeInfoKHR.flags()field.
-
qualityLevel
public VkVideoEncodeInfoKHR.Buffer qualityLevel(int value)
Sets the specified value to theVkVideoEncodeInfoKHR.qualityLevel()field.
-
codedExtent
public VkVideoEncodeInfoKHR.Buffer codedExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theVkVideoEncodeInfoKHR.codedExtent()field.
-
codedExtent
public VkVideoEncodeInfoKHR.Buffer codedExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theVkVideoEncodeInfoKHR.codedExtent()field to the specifiedConsumer.
-
dstBitstreamBuffer
public VkVideoEncodeInfoKHR.Buffer dstBitstreamBuffer(long value)
Sets the specified value to theVkVideoEncodeInfoKHR.dstBitstreamBuffer()field.
-
dstBitstreamBufferOffset
public VkVideoEncodeInfoKHR.Buffer dstBitstreamBufferOffset(long value)
Sets the specified value to theVkVideoEncodeInfoKHR.dstBitstreamBufferOffset()field.
-
dstBitstreamBufferMaxRange
public VkVideoEncodeInfoKHR.Buffer dstBitstreamBufferMaxRange(long value)
Sets the specified value to theVkVideoEncodeInfoKHR.dstBitstreamBufferMaxRange()field.
-
srcPictureResource
public VkVideoEncodeInfoKHR.Buffer srcPictureResource(VkVideoPictureResourceKHR value)
Copies the specifiedVkVideoPictureResourceKHRto theVkVideoEncodeInfoKHR.srcPictureResource()field.
-
srcPictureResource
public VkVideoEncodeInfoKHR.Buffer srcPictureResource(java.util.function.Consumer<VkVideoPictureResourceKHR> consumer)
Passes theVkVideoEncodeInfoKHR.srcPictureResource()field to the specifiedConsumer.
-
pSetupReferenceSlot
public VkVideoEncodeInfoKHR.Buffer pSetupReferenceSlot(VkVideoReferenceSlotKHR value)
Sets the address of the specifiedVkVideoReferenceSlotKHRto theVkVideoEncodeInfoKHR.pSetupReferenceSlot()field.
-
pReferenceSlots
public VkVideoEncodeInfoKHR.Buffer pReferenceSlots(@Nullable VkVideoReferenceSlotKHR.Buffer value)
Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto theVkVideoEncodeInfoKHR.pReferenceSlots()field.
-
precedingExternallyEncodedBytes
public VkVideoEncodeInfoKHR.Buffer precedingExternallyEncodedBytes(int value)
Sets the specified value to theVkVideoEncodeInfoKHR.precedingExternallyEncodedBytes()field.
-
-