Package org.lwjgl.vulkan
Class VkVideoPictureResourceKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoPictureResourceKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoPictureResourceKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the picture resources.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_KHRpNextmust beNULLimageViewBindingmust be a validVkImageViewhandle
See Also
VkExtent2D,VkOffset2D,VkVideoDecodeInfoKHR,VkVideoEncodeInfoKHR,VkVideoReferenceSlotKHRLayout
struct VkVideoPictureResourceKHR { VkStructureTypesType(); void const *pNext();VkOffset2DcodedOffset();VkExtent2DcodedExtent(); uint32_tbaseArrayLayer(); VkImageViewimageViewBinding(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoPictureResourceKHR.BufferAn array ofVkVideoPictureResourceKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBASEARRAYLAYER
CODEDEXTENT
CODEDOFFSET
IMAGEVIEWBINDING
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoPictureResourceKHR(java.nio.ByteBuffer container)Creates aVkVideoPictureResourceKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbaseArrayLayer()the first array layer to be accessed for the Decode or Encode Operations.VkVideoPictureResourceKHRbaseArrayLayer(int value)Sets the specified value to thebaseArrayLayer()field.static VkVideoPictureResourceKHRcalloc()Returns a newVkVideoPictureResourceKHRinstance allocated withmemCalloc.static VkVideoPictureResourceKHR.Buffercalloc(int capacity)Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withmemCalloc.static VkVideoPictureResourceKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoPictureResourceKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoPictureResourceKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkExtent2DcodedExtent()the extent to be used for the picture resource.VkVideoPictureResourceKHRcodedExtent(java.util.function.Consumer<VkExtent2D> consumer)Passes thecodedExtent()field to the specifiedConsumer.VkVideoPictureResourceKHRcodedExtent(VkExtent2D value)Copies the specifiedVkExtent2Dto thecodedExtent()field.VkOffset2DcodedOffset()the offset to be used for the picture resource.VkVideoPictureResourceKHRcodedOffset(java.util.function.Consumer<VkOffset2D> consumer)Passes thecodedOffset()field to the specifiedConsumer.VkVideoPictureResourceKHRcodedOffset(VkOffset2D value)Copies the specifiedVkOffset2Dto thecodedOffset()field.static VkVideoPictureResourceKHRcreate()Returns a newVkVideoPictureResourceKHRinstance allocated withBufferUtils.static VkVideoPictureResourceKHR.Buffercreate(int capacity)Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withBufferUtils.static VkVideoPictureResourceKHRcreate(long address)Returns a newVkVideoPictureResourceKHRinstance for the specified memory address.static VkVideoPictureResourceKHR.Buffercreate(long address, int capacity)Create aVkVideoPictureResourceKHR.Bufferinstance at the specified memory.static VkVideoPictureResourceKHRcreateSafe(long address)static VkVideoPictureResourceKHR.BuffercreateSafe(long address, int capacity)longimageViewBinding()aVkImageViewimage view representing this picture resource.VkVideoPictureResourceKHRimageViewBinding(long value)Sets the specified value to theimageViewBinding()field.static VkVideoPictureResourceKHRmalloc()Returns a newVkVideoPictureResourceKHRinstance allocated withmemAlloc.static VkVideoPictureResourceKHR.Buffermalloc(int capacity)Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withmemAlloc.static VkVideoPictureResourceKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoPictureResourceKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoPictureResourceKHRinstance allocated on the specifiedMemoryStack.static intnbaseArrayLayer(long struct)Unsafe version ofbaseArrayLayer().static voidnbaseArrayLayer(long struct, int value)Unsafe version ofbaseArrayLayer.static VkExtent2DncodedExtent(long struct)Unsafe version ofcodedExtent().static voidncodedExtent(long struct, VkExtent2D value)Unsafe version ofcodedExtent.static VkOffset2DncodedOffset(long struct)Unsafe version ofcodedOffset().static voidncodedOffset(long struct, VkOffset2D value)Unsafe version ofcodedOffset.static longnimageViewBinding(long struct)Unsafe version ofimageViewBinding().static voidnimageViewBinding(long struct, long value)Unsafe version ofimageViewBinding.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkVideoPictureResourceKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoPictureResourceKHRset(int sType, long pNext, VkOffset2D codedOffset, VkExtent2D codedExtent, int baseArrayLayer, long imageViewBinding)Initializes this struct with the specified values.VkVideoPictureResourceKHRset(VkVideoPictureResourceKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoPictureResourceKHRsType(int value)Sets the specified value to thesType()field.VkVideoPictureResourceKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoPictureResourceKHR
public VkVideoPictureResourceKHR(java.nio.ByteBuffer container)
Creates aVkVideoPictureResourceKHRinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
codedOffset
public VkOffset2D codedOffset()
the offset to be used for the picture resource.
-
codedExtent
public VkExtent2D codedExtent()
the extent to be used for the picture resource.
-
baseArrayLayer
public int baseArrayLayer()
the first array layer to be accessed for the Decode or Encode Operations.
-
imageViewBinding
public long imageViewBinding()
aVkImageViewimage view representing this picture resource.
-
sType
public VkVideoPictureResourceKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoPictureResourceKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_KHRvalue to thesType()field.
-
pNext
public VkVideoPictureResourceKHR pNext(long value)
Sets the specified value to thepNext()field.
-
codedOffset
public VkVideoPictureResourceKHR codedOffset(VkOffset2D value)
Copies the specifiedVkOffset2Dto thecodedOffset()field.
-
codedOffset
public VkVideoPictureResourceKHR codedOffset(java.util.function.Consumer<VkOffset2D> consumer)
Passes thecodedOffset()field to the specifiedConsumer.
-
codedExtent
public VkVideoPictureResourceKHR codedExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto thecodedExtent()field.
-
codedExtent
public VkVideoPictureResourceKHR codedExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes thecodedExtent()field to the specifiedConsumer.
-
baseArrayLayer
public VkVideoPictureResourceKHR baseArrayLayer(int value)
Sets the specified value to thebaseArrayLayer()field.
-
imageViewBinding
public VkVideoPictureResourceKHR imageViewBinding(long value)
Sets the specified value to theimageViewBinding()field.
-
set
public VkVideoPictureResourceKHR set(int sType, long pNext, VkOffset2D codedOffset, VkExtent2D codedExtent, int baseArrayLayer, long imageViewBinding)
Initializes this struct with the specified values.
-
set
public VkVideoPictureResourceKHR set(VkVideoPictureResourceKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoPictureResourceKHR malloc()
Returns a newVkVideoPictureResourceKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoPictureResourceKHR calloc()
Returns a newVkVideoPictureResourceKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoPictureResourceKHR create()
Returns a newVkVideoPictureResourceKHRinstance allocated withBufferUtils.
-
create
public static VkVideoPictureResourceKHR create(long address)
Returns a newVkVideoPictureResourceKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoPictureResourceKHR createSafe(long address)
-
malloc
public static VkVideoPictureResourceKHR.Buffer malloc(int capacity)
Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoPictureResourceKHR.Buffer calloc(int capacity)
Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoPictureResourceKHR.Buffer create(int capacity)
Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoPictureResourceKHR.Buffer create(long address, int capacity)
Create aVkVideoPictureResourceKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoPictureResourceKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoPictureResourceKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoPictureResourceKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoPictureResourceKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoPictureResourceKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoPictureResourceKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoPictureResourceKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoPictureResourceKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ncodedOffset
public static VkOffset2D ncodedOffset(long struct)
Unsafe version ofcodedOffset().
-
ncodedExtent
public static VkExtent2D ncodedExtent(long struct)
Unsafe version ofcodedExtent().
-
nbaseArrayLayer
public static int nbaseArrayLayer(long struct)
Unsafe version ofbaseArrayLayer().
-
nimageViewBinding
public static long nimageViewBinding(long struct)
Unsafe version ofimageViewBinding().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncodedOffset
public static void ncodedOffset(long struct, VkOffset2D value)Unsafe version ofcodedOffset.
-
ncodedExtent
public static void ncodedExtent(long struct, VkExtent2D value)Unsafe version ofcodedExtent.
-
nbaseArrayLayer
public static void nbaseArrayLayer(long struct, int value)Unsafe version ofbaseArrayLayer.
-
nimageViewBinding
public static void nimageViewBinding(long struct, long value)Unsafe version ofimageViewBinding.
-
-