Package org.lwjgl.vulkan
Class VkVideoBindMemoryKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoBindMemoryKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoBindMemoryKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying device memory heap entry for video session object.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_BIND_MEMORY_KHRpNextmust beNULLmemorymust be a validVkDeviceMemoryhandle
See Also
Layout
struct VkVideoBindMemoryKHR { VkStructureTypesType(); void const *pNext(); uint32_tmemoryBindIndex(); VkDeviceMemorymemory(); VkDeviceSizememoryOffset(); VkDeviceSizememorySize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoBindMemoryKHR.BufferAn array ofVkVideoBindMemoryKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMEMORY
MEMORYBINDINDEX
MEMORYOFFSET
MEMORYSIZE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoBindMemoryKHR(java.nio.ByteBuffer container)Creates aVkVideoBindMemoryKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoBindMemoryKHRcalloc()Returns a newVkVideoBindMemoryKHRinstance allocated withmemCalloc.static VkVideoBindMemoryKHR.Buffercalloc(int capacity)Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withmemCalloc.static VkVideoBindMemoryKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoBindMemoryKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBindMemoryKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoBindMemoryKHRcreate()Returns a newVkVideoBindMemoryKHRinstance allocated withBufferUtils.static VkVideoBindMemoryKHR.Buffercreate(int capacity)Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withBufferUtils.static VkVideoBindMemoryKHRcreate(long address)Returns a newVkVideoBindMemoryKHRinstance for the specified memory address.static VkVideoBindMemoryKHR.Buffercreate(long address, int capacity)Create aVkVideoBindMemoryKHR.Bufferinstance at the specified memory.static VkVideoBindMemoryKHRcreateSafe(long address)static VkVideoBindMemoryKHR.BuffercreateSafe(long address, int capacity)static VkVideoBindMemoryKHRmalloc()Returns a newVkVideoBindMemoryKHRinstance allocated withmemAlloc.static VkVideoBindMemoryKHR.Buffermalloc(int capacity)Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withmemAlloc.static VkVideoBindMemoryKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoBindMemoryKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBindMemoryKHRinstance allocated on the specifiedMemoryStack.longmemory()the allocated device memory to be bound to the video session’s heap with indexmemoryBindIndex.VkVideoBindMemoryKHRmemory(long value)Sets the specified value to thememory()field.intmemoryBindIndex()the index of the device memory heap returned inVkVideoGetMemoryPropertiesKHR::memoryBindIndexfromGetVideoSessionMemoryRequirementsKHR.VkVideoBindMemoryKHRmemoryBindIndex(int value)Sets the specified value to thememoryBindIndex()field.longmemoryOffset()the start offset of the region ofmemorywhich is to be bound.VkVideoBindMemoryKHRmemoryOffset(long value)Sets the specified value to thememoryOffset()field.longmemorySize()the size in bytes of the region ofmemory, starting frommemoryOffsetbytes, to be bound.VkVideoBindMemoryKHRmemorySize(long value)Sets the specified value to thememorySize()field.static longnmemory(long struct)Unsafe version ofmemory().static voidnmemory(long struct, long value)Unsafe version ofmemory.static intnmemoryBindIndex(long struct)Unsafe version ofmemoryBindIndex().static voidnmemoryBindIndex(long struct, int value)Unsafe version ofmemoryBindIndex.static longnmemoryOffset(long struct)Unsafe version ofmemoryOffset().static voidnmemoryOffset(long struct, long value)Unsafe version ofmemoryOffset.static longnmemorySize(long struct)Unsafe version ofmemorySize().static voidnmemorySize(long struct, long value)Unsafe version ofmemorySize.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.VkVideoBindMemoryKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoBindMemoryKHRset(int sType, long pNext, int memoryBindIndex, long memory, long memoryOffset, long memorySize)Initializes this struct with the specified values.VkVideoBindMemoryKHRset(VkVideoBindMemoryKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoBindMemoryKHRsType(int value)Sets the specified value to thesType()field.VkVideoBindMemoryKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_BIND_MEMORY_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoBindMemoryKHR
public VkVideoBindMemoryKHR(java.nio.ByteBuffer container)
Creates aVkVideoBindMemoryKHRinstance 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 index of the device memory heap returned inVkVideoGetMemoryPropertiesKHR::memoryBindIndexfromGetVideoSessionMemoryRequirementsKHR.
-
memory
public long memory()
the allocated device memory to be bound to the video session’s heap with indexmemoryBindIndex.
-
memoryOffset
public long memoryOffset()
the start offset of the region ofmemorywhich is to be bound.
-
memorySize
public long memorySize()
the size in bytes of the region ofmemory, starting frommemoryOffsetbytes, to be bound.
-
sType
public VkVideoBindMemoryKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoBindMemoryKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_BIND_MEMORY_KHRvalue to thesType()field.
-
pNext
public VkVideoBindMemoryKHR pNext(long value)
Sets the specified value to thepNext()field.
-
memoryBindIndex
public VkVideoBindMemoryKHR memoryBindIndex(int value)
Sets the specified value to thememoryBindIndex()field.
-
memory
public VkVideoBindMemoryKHR memory(long value)
Sets the specified value to thememory()field.
-
memoryOffset
public VkVideoBindMemoryKHR memoryOffset(long value)
Sets the specified value to thememoryOffset()field.
-
memorySize
public VkVideoBindMemoryKHR memorySize(long value)
Sets the specified value to thememorySize()field.
-
set
public VkVideoBindMemoryKHR set(int sType, long pNext, int memoryBindIndex, long memory, long memoryOffset, long memorySize)
Initializes this struct with the specified values.
-
set
public VkVideoBindMemoryKHR set(VkVideoBindMemoryKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoBindMemoryKHR malloc()
Returns a newVkVideoBindMemoryKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoBindMemoryKHR calloc()
Returns a newVkVideoBindMemoryKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoBindMemoryKHR create()
Returns a newVkVideoBindMemoryKHRinstance allocated withBufferUtils.
-
create
public static VkVideoBindMemoryKHR create(long address)
Returns a newVkVideoBindMemoryKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoBindMemoryKHR createSafe(long address)
-
malloc
public static VkVideoBindMemoryKHR.Buffer malloc(int capacity)
Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoBindMemoryKHR.Buffer calloc(int capacity)
Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoBindMemoryKHR.Buffer create(int capacity)
Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoBindMemoryKHR.Buffer create(long address, int capacity)
Create aVkVideoBindMemoryKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoBindMemoryKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoBindMemoryKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBindMemoryKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoBindMemoryKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBindMemoryKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoBindMemoryKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBindMemoryKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoBindMemoryKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBindMemoryKHR.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().
-
nmemory
public static long nmemory(long struct)
Unsafe version ofmemory().
-
nmemoryOffset
public static long nmemoryOffset(long struct)
Unsafe version ofmemoryOffset().
-
nmemorySize
public static long nmemorySize(long struct)
Unsafe version ofmemorySize().
-
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.
-
nmemory
public static void nmemory(long struct, long value)Unsafe version ofmemory.
-
nmemoryOffset
public static void nmemoryOffset(long struct, long value)Unsafe version ofmemoryOffset.
-
nmemorySize
public static void nmemorySize(long struct, long value)Unsafe version ofmemorySize.
-
-