Package org.lwjgl.vulkan
Class VkVideoFormatPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoFormatPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoFormatPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure enumerating the video image formats.Description
If the
pVideoProfilesprovided in input structurepVideoFormatInfoare not supported,ERROR_FORMAT_NOT_SUPPORTEDis returned. If the implementation requires an opaque video decode or encode DPB, then when querying with the corresponding video decode or encode DPB image usage inimageUsage, only one image format is returned:FORMAT_UNDEFINED.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_FORMAT_PROPERTIES_KHRpNextmust beNULL
See Also
GetPhysicalDeviceVideoFormatPropertiesKHRLayout
struct VkVideoFormatPropertiesKHR { VkStructureTypesType(); void *pNext(); VkFormatformat(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoFormatPropertiesKHR.BufferAn array ofVkVideoFormatPropertiesKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkVideoFormatPropertiesKHR(java.nio.ByteBuffer container)Creates aVkVideoFormatPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoFormatPropertiesKHRcalloc()Returns a newVkVideoFormatPropertiesKHRinstance allocated withmemCalloc.static VkVideoFormatPropertiesKHR.Buffercalloc(int capacity)Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkVideoFormatPropertiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoFormatPropertiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoFormatPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoFormatPropertiesKHRcreate()Returns a newVkVideoFormatPropertiesKHRinstance allocated withBufferUtils.static VkVideoFormatPropertiesKHR.Buffercreate(int capacity)Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkVideoFormatPropertiesKHRcreate(long address)Returns a newVkVideoFormatPropertiesKHRinstance for the specified memory address.static VkVideoFormatPropertiesKHR.Buffercreate(long address, int capacity)Create aVkVideoFormatPropertiesKHR.Bufferinstance at the specified memory.static VkVideoFormatPropertiesKHRcreateSafe(long address)static VkVideoFormatPropertiesKHR.BuffercreateSafe(long address, int capacity)intformat()one of the supported formats reported by the implementation.static VkVideoFormatPropertiesKHRmalloc()Returns a newVkVideoFormatPropertiesKHRinstance allocated withmemAlloc.static VkVideoFormatPropertiesKHR.Buffermalloc(int capacity)Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkVideoFormatPropertiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoFormatPropertiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoFormatPropertiesKHRinstance allocated on the specifiedMemoryStack.static intnformat(long struct)Unsafe version offormat().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.VkVideoFormatPropertiesKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoFormatPropertiesKHRset(int sType, long pNext)Initializes this struct with the specified values.VkVideoFormatPropertiesKHRset(VkVideoFormatPropertiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoFormatPropertiesKHRsType(int value)Sets the specified value to thesType()field.VkVideoFormatPropertiesKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_FORMAT_PROPERTIES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoFormatPropertiesKHR
public VkVideoFormatPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkVideoFormatPropertiesKHRinstance 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.
-
format
public int format()
one of the supported formats reported by the implementation.
-
sType
public VkVideoFormatPropertiesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoFormatPropertiesKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_FORMAT_PROPERTIES_KHRvalue to thesType()field.
-
pNext
public VkVideoFormatPropertiesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkVideoFormatPropertiesKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkVideoFormatPropertiesKHR set(VkVideoFormatPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoFormatPropertiesKHR malloc()
Returns a newVkVideoFormatPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoFormatPropertiesKHR calloc()
Returns a newVkVideoFormatPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoFormatPropertiesKHR create()
Returns a newVkVideoFormatPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkVideoFormatPropertiesKHR create(long address)
Returns a newVkVideoFormatPropertiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoFormatPropertiesKHR createSafe(long address)
-
malloc
public static VkVideoFormatPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoFormatPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoFormatPropertiesKHR.Buffer create(int capacity)
Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoFormatPropertiesKHR.Buffer create(long address, int capacity)
Create aVkVideoFormatPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoFormatPropertiesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoFormatPropertiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoFormatPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoFormatPropertiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoFormatPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoFormatPropertiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoFormatPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoFormatPropertiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoFormatPropertiesKHR.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().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-