Package org.lwjgl.vulkan
Class VkVideoProfilesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoProfilesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoProfilesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure enumerating the video profiles.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_PROFILES_KHRpProfilesmust be a valid pointer to a validVkVideoProfileKHRstructure
See Also
VkPhysicalDeviceVideoFormatInfoKHR,VkVideoProfileKHRLayout
struct VkVideoProfilesKHR { VkStructureTypesType(); void *pNext(); uint32_tprofileCount();VkVideoProfileKHRconst *pProfiles(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoProfilesKHR.BufferAn array ofVkVideoProfilesKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkVideoProfilesKHR(java.nio.ByteBuffer container)Creates aVkVideoProfilesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoProfilesKHRcalloc()Returns a newVkVideoProfilesKHRinstance allocated withmemCalloc.static VkVideoProfilesKHR.Buffercalloc(int capacity)Returns a newVkVideoProfilesKHR.Bufferinstance allocated withmemCalloc.static VkVideoProfilesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfilesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoProfilesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfilesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoProfilesKHRcreate()Returns a newVkVideoProfilesKHRinstance allocated withBufferUtils.static VkVideoProfilesKHR.Buffercreate(int capacity)Returns a newVkVideoProfilesKHR.Bufferinstance allocated withBufferUtils.static VkVideoProfilesKHRcreate(long address)Returns a newVkVideoProfilesKHRinstance for the specified memory address.static VkVideoProfilesKHR.Buffercreate(long address, int capacity)Create aVkVideoProfilesKHR.Bufferinstance at the specified memory.static VkVideoProfilesKHRcreateSafe(long address)static VkVideoProfilesKHR.BuffercreateSafe(long address, int capacity)static VkVideoProfilesKHRmalloc()Returns a newVkVideoProfilesKHRinstance allocated withmemAlloc.static VkVideoProfilesKHR.Buffermalloc(int capacity)Returns a newVkVideoProfilesKHR.Bufferinstance allocated withmemAlloc.static VkVideoProfilesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfilesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoProfilesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfilesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoProfileKHRnpProfiles(long struct)Unsafe version ofpProfiles().static voidnpProfiles(long struct, VkVideoProfileKHR value)Unsafe version ofpProfiles.static intnprofileCount(long struct)Unsafe version ofprofileCount().static voidnprofileCount(long struct, int value)Unsafe version ofprofileCount.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.VkVideoProfilesKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoProfileKHRpProfiles()a pointer to an array ofVkVideoProfileKHRstructures.VkVideoProfilesKHRpProfiles(VkVideoProfileKHR value)Sets the address of the specifiedVkVideoProfileKHRto thepProfiles()field.intprofileCount()an integer which holds the number of video profiles included inpProfiles.VkVideoProfilesKHRprofileCount(int value)Sets the specified value to theprofileCount()field.VkVideoProfilesKHRset(int sType, long pNext, int profileCount, VkVideoProfileKHR pProfiles)Initializes this struct with the specified values.VkVideoProfilesKHRset(VkVideoProfilesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoProfilesKHRsType(int value)Sets the specified value to thesType()field.VkVideoProfilesKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_PROFILES_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoProfilesKHR
public VkVideoProfilesKHR(java.nio.ByteBuffer container)
Creates aVkVideoProfilesKHRinstance 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.
-
profileCount
public int profileCount()
an integer which holds the number of video profiles included inpProfiles.
-
pProfiles
public VkVideoProfileKHR pProfiles()
a pointer to an array ofVkVideoProfileKHRstructures. EachVkVideoProfileKHRstructure must chain the corresponding codec-operation specific extension video profile structure.
-
sType
public VkVideoProfilesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoProfilesKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_PROFILES_KHRvalue to thesType()field.
-
pNext
public VkVideoProfilesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
profileCount
public VkVideoProfilesKHR profileCount(int value)
Sets the specified value to theprofileCount()field.
-
pProfiles
public VkVideoProfilesKHR pProfiles(VkVideoProfileKHR value)
Sets the address of the specifiedVkVideoProfileKHRto thepProfiles()field.
-
set
public VkVideoProfilesKHR set(int sType, long pNext, int profileCount, VkVideoProfileKHR pProfiles)
Initializes this struct with the specified values.
-
set
public VkVideoProfilesKHR set(VkVideoProfilesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoProfilesKHR malloc()
Returns a newVkVideoProfilesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoProfilesKHR calloc()
Returns a newVkVideoProfilesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoProfilesKHR create()
Returns a newVkVideoProfilesKHRinstance allocated withBufferUtils.
-
create
public static VkVideoProfilesKHR create(long address)
Returns a newVkVideoProfilesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoProfilesKHR createSafe(long address)
-
malloc
public static VkVideoProfilesKHR.Buffer malloc(int capacity)
Returns a newVkVideoProfilesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoProfilesKHR.Buffer calloc(int capacity)
Returns a newVkVideoProfilesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoProfilesKHR.Buffer create(int capacity)
Returns a newVkVideoProfilesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoProfilesKHR.Buffer create(long address, int capacity)
Create aVkVideoProfilesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoProfilesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoProfilesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfilesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoProfilesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfilesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoProfilesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfilesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoProfilesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfilesKHR.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().
-
nprofileCount
public static int nprofileCount(long struct)
Unsafe version ofprofileCount().
-
npProfiles
public static VkVideoProfileKHR npProfiles(long struct)
Unsafe version ofpProfiles().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprofileCount
public static void nprofileCount(long struct, int value)Unsafe version ofprofileCount.
-
npProfiles
public static void npProfiles(long struct, VkVideoProfileKHR value)Unsafe version ofpProfiles.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-