Package org.lwjgl.vulkan
Class VkVideoGetMemoryPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoGetMemoryPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoGetMemoryPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying video session required memory heap type.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_GET_MEMORY_PROPERTIES_KHRpNextmust beNULLpMemoryRequirementsmust be a valid pointer to aVkMemoryRequirements2structure
See Also
VkMemoryRequirements2,GetVideoSessionMemoryRequirementsKHRLayout
struct VkVideoGetMemoryPropertiesKHR { VkStructureTypesType(); void const *pNext(); uint32_tmemoryBindIndex();VkMemoryRequirements2*pMemoryRequirements(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoGetMemoryPropertiesKHR.BufferAn array ofVkVideoGetMemoryPropertiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMEMORYBINDINDEX
PMEMORYREQUIREMENTS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoGetMemoryPropertiesKHR(java.nio.ByteBuffer container)Creates aVkVideoGetMemoryPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoGetMemoryPropertiesKHRcalloc()Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withmemCalloc.static VkVideoGetMemoryPropertiesKHR.Buffercalloc(int capacity)Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkVideoGetMemoryPropertiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoGetMemoryPropertiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoGetMemoryPropertiesKHRcreate()Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withBufferUtils.static VkVideoGetMemoryPropertiesKHR.Buffercreate(int capacity)Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkVideoGetMemoryPropertiesKHRcreate(long address)Returns a newVkVideoGetMemoryPropertiesKHRinstance for the specified memory address.static VkVideoGetMemoryPropertiesKHR.Buffercreate(long address, int capacity)Create aVkVideoGetMemoryPropertiesKHR.Bufferinstance at the specified memory.static VkVideoGetMemoryPropertiesKHRcreateSafe(long address)static VkVideoGetMemoryPropertiesKHR.BuffercreateSafe(long address, int capacity)static VkVideoGetMemoryPropertiesKHRmalloc()Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withmemAlloc.static VkVideoGetMemoryPropertiesKHR.Buffermalloc(int capacity)Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkVideoGetMemoryPropertiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoGetMemoryPropertiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated on the specifiedMemoryStack.intmemoryBindIndex()the memory bind index of the memory heap type described by the information returned inpMemoryRequirements.VkVideoGetMemoryPropertiesKHRmemoryBindIndex(int value)Sets the specified value to thememoryBindIndex()field.static intnmemoryBindIndex(long struct)Unsafe version ofmemoryBindIndex().static voidnmemoryBindIndex(long struct, int value)Unsafe version ofmemoryBindIndex.static VkMemoryRequirements2npMemoryRequirements(long struct)Unsafe version ofpMemoryRequirements().static voidnpMemoryRequirements(long struct, VkMemoryRequirements2 value)Unsafe version ofpMemoryRequirements.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.VkMemoryRequirements2pMemoryRequirements()a pointer to aVkMemoryRequirements2structure in which the requested memory heap requirements for the heap with indexmemoryBindIndexare returned.VkVideoGetMemoryPropertiesKHRpMemoryRequirements(VkMemoryRequirements2 value)Sets the address of the specifiedVkMemoryRequirements2to thepMemoryRequirements()field.longpNext()NULLor a pointer to a structure extending this structure.VkVideoGetMemoryPropertiesKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoGetMemoryPropertiesKHRset(int sType, long pNext, int memoryBindIndex, VkMemoryRequirements2 pMemoryRequirements)Initializes this struct with the specified values.VkVideoGetMemoryPropertiesKHRset(VkVideoGetMemoryPropertiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoGetMemoryPropertiesKHRsType(int value)Sets the specified value to thesType()field.VkVideoGetMemoryPropertiesKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_GET_MEMORY_PROPERTIES_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoGetMemoryPropertiesKHR
public VkVideoGetMemoryPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkVideoGetMemoryPropertiesKHRinstance 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.
-
memoryBindIndex
public int memoryBindIndex()
the memory bind index of the memory heap type described by the information returned inpMemoryRequirements.
-
pMemoryRequirements
public VkMemoryRequirements2 pMemoryRequirements()
a pointer to aVkMemoryRequirements2structure in which the requested memory heap requirements for the heap with indexmemoryBindIndexare returned.
-
sType
public VkVideoGetMemoryPropertiesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoGetMemoryPropertiesKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_GET_MEMORY_PROPERTIES_KHRvalue to thesType()field.
-
pNext
public VkVideoGetMemoryPropertiesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
memoryBindIndex
public VkVideoGetMemoryPropertiesKHR memoryBindIndex(int value)
Sets the specified value to thememoryBindIndex()field.
-
pMemoryRequirements
public VkVideoGetMemoryPropertiesKHR pMemoryRequirements(VkMemoryRequirements2 value)
Sets the address of the specifiedVkMemoryRequirements2to thepMemoryRequirements()field.
-
set
public VkVideoGetMemoryPropertiesKHR set(int sType, long pNext, int memoryBindIndex, VkMemoryRequirements2 pMemoryRequirements)
Initializes this struct with the specified values.
-
set
public VkVideoGetMemoryPropertiesKHR set(VkVideoGetMemoryPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoGetMemoryPropertiesKHR malloc()
Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoGetMemoryPropertiesKHR calloc()
Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoGetMemoryPropertiesKHR create()
Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkVideoGetMemoryPropertiesKHR create(long address)
Returns a newVkVideoGetMemoryPropertiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoGetMemoryPropertiesKHR createSafe(long address)
-
malloc
public static VkVideoGetMemoryPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoGetMemoryPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoGetMemoryPropertiesKHR.Buffer create(int capacity)
Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoGetMemoryPropertiesKHR.Buffer create(long address, int capacity)
Create aVkVideoGetMemoryPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoGetMemoryPropertiesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoGetMemoryPropertiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoGetMemoryPropertiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoGetMemoryPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoGetMemoryPropertiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoGetMemoryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoGetMemoryPropertiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoGetMemoryPropertiesKHR.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().
-
nmemoryBindIndex
public static int nmemoryBindIndex(long struct)
Unsafe version ofmemoryBindIndex().
-
npMemoryRequirements
public static VkMemoryRequirements2 npMemoryRequirements(long struct)
Unsafe version ofpMemoryRequirements().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmemoryBindIndex
public static void nmemoryBindIndex(long struct, int value)Unsafe version ofmemoryBindIndex.
-
npMemoryRequirements
public static void npMemoryRequirements(long struct, VkMemoryRequirements2 value)Unsafe version ofpMemoryRequirements.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-