Package org.lwjgl.vulkan
Class VkVideoDecodeInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkVideoDecodeInfoKHR,VkVideoDecodeInfoKHR.Buffer>
-
- org.lwjgl.vulkan.VkVideoDecodeInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkVideoDecodeInfoKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkVideoDecodeInfoKHR
public static class VkVideoDecodeInfoKHR.Buffer extends org.lwjgl.system.StructBuffer<VkVideoDecodeInfoKHR,VkVideoDecodeInfoKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkVideoDecodeInfoKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkVideoDecodeInfoKHR.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 byVkVideoDecodeInfoKHR.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
VkVideoDecodeInfoKHR.sType()field.
-
pNext
public long pNext()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.pNext()field.
-
flags
public int flags()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.flags()field.
-
codedOffset
public VkOffset2D codedOffset()
- Returns:
- a
VkOffset2Dview of theVkVideoDecodeInfoKHR.codedOffset()field.
-
codedExtent
public VkExtent2D codedExtent()
- Returns:
- a
VkExtent2Dview of theVkVideoDecodeInfoKHR.codedExtent()field.
-
srcBuffer
public long srcBuffer()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.srcBuffer()field.
-
srcBufferOffset
public long srcBufferOffset()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.srcBufferOffset()field.
-
srcBufferRange
public long srcBufferRange()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.srcBufferRange()field.
-
dstPictureResource
public VkVideoPictureResourceKHR dstPictureResource()
- Returns:
- a
VkVideoPictureResourceKHRview of theVkVideoDecodeInfoKHR.dstPictureResource()field.
-
pSetupReferenceSlot
public VkVideoReferenceSlotKHR pSetupReferenceSlot()
- Returns:
- a
VkVideoReferenceSlotKHRview of the struct pointed to by theVkVideoDecodeInfoKHR.pSetupReferenceSlot()field.
-
referenceSlotCount
public int referenceSlotCount()
- Returns:
- the value of the
VkVideoDecodeInfoKHR.referenceSlotCount()field.
-
pReferenceSlots
@Nullable public VkVideoReferenceSlotKHR.Buffer pReferenceSlots()
- Returns:
- a
VkVideoReferenceSlotKHR.Bufferview of the struct array pointed to by theVkVideoDecodeInfoKHR.pReferenceSlots()field.
-
sType
public VkVideoDecodeInfoKHR.Buffer sType(int value)
Sets the specified value to theVkVideoDecodeInfoKHR.sType()field.
-
sType$Default
public VkVideoDecodeInfoKHR.Buffer sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_DECODE_INFO_KHRvalue to theVkVideoDecodeInfoKHR.sType()field.
-
pNext
public VkVideoDecodeInfoKHR.Buffer pNext(long value)
Sets the specified value to theVkVideoDecodeInfoKHR.pNext()field.
-
pNext
public VkVideoDecodeInfoKHR.Buffer pNext(VkVideoDecodeH264PictureInfoEXT value)
Prepends the specifiedVkVideoDecodeH264PictureInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoDecodeInfoKHR.Buffer pNext(VkVideoDecodeH265PictureInfoEXT value)
Prepends the specifiedVkVideoDecodeH265PictureInfoEXTvalue to thepNextchain.
-
flags
public VkVideoDecodeInfoKHR.Buffer flags(int value)
Sets the specified value to theVkVideoDecodeInfoKHR.flags()field.
-
codedOffset
public VkVideoDecodeInfoKHR.Buffer codedOffset(VkOffset2D value)
Copies the specifiedVkOffset2Dto theVkVideoDecodeInfoKHR.codedOffset()field.
-
codedOffset
public VkVideoDecodeInfoKHR.Buffer codedOffset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theVkVideoDecodeInfoKHR.codedOffset()field to the specifiedConsumer.
-
codedExtent
public VkVideoDecodeInfoKHR.Buffer codedExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theVkVideoDecodeInfoKHR.codedExtent()field.
-
codedExtent
public VkVideoDecodeInfoKHR.Buffer codedExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theVkVideoDecodeInfoKHR.codedExtent()field to the specifiedConsumer.
-
srcBuffer
public VkVideoDecodeInfoKHR.Buffer srcBuffer(long value)
Sets the specified value to theVkVideoDecodeInfoKHR.srcBuffer()field.
-
srcBufferOffset
public VkVideoDecodeInfoKHR.Buffer srcBufferOffset(long value)
Sets the specified value to theVkVideoDecodeInfoKHR.srcBufferOffset()field.
-
srcBufferRange
public VkVideoDecodeInfoKHR.Buffer srcBufferRange(long value)
Sets the specified value to theVkVideoDecodeInfoKHR.srcBufferRange()field.
-
dstPictureResource
public VkVideoDecodeInfoKHR.Buffer dstPictureResource(VkVideoPictureResourceKHR value)
Copies the specifiedVkVideoPictureResourceKHRto theVkVideoDecodeInfoKHR.dstPictureResource()field.
-
dstPictureResource
public VkVideoDecodeInfoKHR.Buffer dstPictureResource(java.util.function.Consumer<VkVideoPictureResourceKHR> consumer)
Passes theVkVideoDecodeInfoKHR.dstPictureResource()field to the specifiedConsumer.
-
pSetupReferenceSlot
public VkVideoDecodeInfoKHR.Buffer pSetupReferenceSlot(VkVideoReferenceSlotKHR value)
Sets the address of the specifiedVkVideoReferenceSlotKHRto theVkVideoDecodeInfoKHR.pSetupReferenceSlot()field.
-
pReferenceSlots
public VkVideoDecodeInfoKHR.Buffer pReferenceSlots(@Nullable VkVideoReferenceSlotKHR.Buffer value)
Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto theVkVideoDecodeInfoKHR.pReferenceSlots()field.
-
-