Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkBindVideoSessionMemoryInfoKHR

extends Struct<VkBindVideoSessionMemoryInfoKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying memory bindings for a video session object.
Valid Usage
Valid Usage (Implicit)
See Also

BindVideoSessionMemoryKHR

Layout


struct VkBindVideoSessionMemoryInfoKHR {
    VkStructureType sType;
    void const * pNext;
    uint32_t memoryBindIndex;
    VkDeviceMemory memory;
    VkDeviceSize memoryOffset;
    VkDeviceSize memorySize;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MEMORY

The struct member offsets.

public static final int
MEMORYBINDINDEX

The struct member offsets.

public static final int
MEMORYOFFSET

The struct member offsets.

public static final int
MEMORYSIZE

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkBindVideoSessionMemoryInfoKHR(ByteBuffer container)

Creates a VkBindVideoSessionMemoryInfoKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkBindVideoSessionMemoryInfoKHR
calloc()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with memCalloc.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with memCalloc.

public static VkBindVideoSessionMemoryInfoKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkBindVideoSessionMemoryInfoKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkBindVideoSessionMemoryInfoKHR
create()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with BufferUtils.

public static VkBindVideoSessionMemoryInfoKHR
create(long address)

Returns a new VkBindVideoSessionMemoryInfoKHR instance for the specified memory address.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with BufferUtils.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkBindVideoSessionMemoryInfoKHR.Buffer instance at the specified memory.

public static VkBindVideoSessionMemoryInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VkBindVideoSessionMemoryInfoKHR
malloc()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with memAlloc.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with memAlloc.

public static VkBindVideoSessionMemoryInfoKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated on the specified MemoryStack.

public static VkBindVideoSessionMemoryInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated on the specified MemoryStack.

public long
memory()

the allocated device memory to be bound to the video session’s memory binding with index memoryBindIndex.

public VkBindVideoSessionMemoryInfoKHR
memory(long value)

Sets the specified value to the memory field.

public int
memoryBindIndex()

the memory binding index to bind memory to.

public VkBindVideoSessionMemoryInfoKHR
memoryBindIndex(int value)

Sets the specified value to the memoryBindIndex field.

public long
memoryOffset()

the start offset of the region of memory which is to be bound.

public VkBindVideoSessionMemoryInfoKHR
memoryOffset(long value)

Sets the specified value to the memoryOffset field.

public long
memorySize()

the size in bytes of the region of memory, starting from memoryOffset bytes, to be bound.

public VkBindVideoSessionMemoryInfoKHR
memorySize(long value)

Sets the specified value to the memorySize field.

public static long
nmemory(long struct)

Unsafe version of memory.

public static void
nmemory(long struct, long value)

Unsafe version of memory.

public static int
nmemoryBindIndex(long struct)

Unsafe version of memoryBindIndex.

public static void
nmemoryBindIndex(long struct, int value)

Unsafe version of memoryBindIndex.

public static long
nmemoryOffset(long struct)

Unsafe version of memoryOffset.

public static void
nmemoryOffset(long struct, long value)

Unsafe version of memoryOffset.

public static long
nmemorySize(long struct)

Unsafe version of memorySize.

public static void
nmemorySize(long struct, long value)

Unsafe version of memorySize.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkBindVideoSessionMemoryInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public VkBindVideoSessionMemoryInfoKHR
set(int sType, long pNext, int memoryBindIndex, long memory, long memoryOffset, long memorySize)

Initializes this struct with the specified values.

public VkBindVideoSessionMemoryInfoKHR

Returns:

this struct
set
(VkBindVideoSessionMemoryInfoKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkBindVideoSessionMemoryInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkBindVideoSessionMemoryInfoKHR
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

MEMORYback to summary
public static final int MEMORY

The struct member offsets.

MEMORYBINDINDEXback to summary
public static final int MEMORYBINDINDEX

The struct member offsets.

MEMORYOFFSETback to summary
public static final int MEMORYOFFSET

The struct member offsets.

MEMORYSIZEback to summary
public static final int MEMORYSIZE

The struct member offsets.

PNEXTback to summary
public static final int PNEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STYPEback to summary
public static final int STYPE

The struct member offsets.

Constructor Detail

VkBindVideoSessionMemoryInfoKHRback to summary
protected VkBindVideoSessionMemoryInfoKHR(long address, ByteBuffer container)
VkBindVideoSessionMemoryInfoKHRback to summary
public VkBindVideoSessionMemoryInfoKHR(ByteBuffer container)

Creates a VkBindVideoSessionMemoryInfoKHR instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static VkBindVideoSessionMemoryInfoKHR calloc()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer calloc(int capacity)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkBindVideoSessionMemoryInfoKHR calloc(MemoryStack stack)

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkBindVideoSessionMemoryInfoKHR create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkBindVideoSessionMemoryInfoKHR create()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with BufferUtils.

createback to summary
public static VkBindVideoSessionMemoryInfoKHR create(long address)

Returns a new VkBindVideoSessionMemoryInfoKHR instance for the specified memory address.

createback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer create(int capacity)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer create(long address, int capacity)

Create a VkBindVideoSessionMemoryInfoKHR.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkBindVideoSessionMemoryInfoKHR createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static VkBindVideoSessionMemoryInfoKHR malloc()

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer malloc(int capacity)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkBindVideoSessionMemoryInfoKHR malloc(MemoryStack stack)

Returns a new VkBindVideoSessionMemoryInfoKHR instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkBindVideoSessionMemoryInfoKHR.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkBindVideoSessionMemoryInfoKHR.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

memoryback to summary
public long memory()

the allocated device memory to be bound to the video session’s memory binding with index memoryBindIndex.

Annotations
@NativeType:VkDeviceMemory
memoryback to summary
public VkBindVideoSessionMemoryInfoKHR memory(long value)

Sets the specified value to the memory field.

memoryBindIndexback to summary
public int memoryBindIndex()

the memory binding index to bind memory to.

Annotations
@NativeType:uint32_t
memoryBindIndexback to summary
public VkBindVideoSessionMemoryInfoKHR memoryBindIndex(int value)

Sets the specified value to the memoryBindIndex field.

memoryOffsetback to summary
public long memoryOffset()

the start offset of the region of memory which is to be bound.

Annotations
@NativeType:VkDeviceSize
memoryOffsetback to summary
public VkBindVideoSessionMemoryInfoKHR memoryOffset(long value)

Sets the specified value to the memoryOffset field.

memorySizeback to summary
public long memorySize()

the size in bytes of the region of memory, starting from memoryOffset bytes, to be bound.

Annotations
@NativeType:VkDeviceSize
memorySizeback to summary
public VkBindVideoSessionMemoryInfoKHR memorySize(long value)

Sets the specified value to the memorySize field.

nmemoryback to summary
public static long nmemory(long struct)

Unsafe version of memory.

nmemoryback to summary
public static void nmemory(long struct, long value)

Unsafe version of memory.

nmemoryBindIndexback to summary
public static int nmemoryBindIndex(long struct)

Unsafe version of memoryBindIndex.

nmemoryBindIndexback to summary
public static void nmemoryBindIndex(long struct, int value)

Unsafe version of memoryBindIndex.

nmemoryOffsetback to summary
public static long nmemoryOffset(long struct)

Unsafe version of memoryOffset.

nmemoryOffsetback to summary
public static void nmemoryOffset(long struct, long value)

Unsafe version of memoryOffset.

nmemorySizeback to summary
public static long nmemorySize(long struct)

Unsafe version of memorySize.

nmemorySizeback to summary
public static void nmemorySize(long struct, long value)

Unsafe version of memorySize.

npNextback to summary
public static long npNext(long struct)

Unsafe version of pNext.

npNextback to summary
public static void npNext(long struct, long value)

Unsafe version of pNext.

nsTypeback to summary
public static int nsType(long struct)

Unsafe version of sType.

nsTypeback to summary
public static void nsType(long struct, int value)

Unsafe version of sType.

pNextback to summary
public long pNext()

NULL or a pointer to a structure extending this structure.

Annotations
@NativeType:void const *
pNextback to summary
public VkBindVideoSessionMemoryInfoKHR pNext(long value)

Sets the specified value to the pNext field.

setback to summary
public VkBindVideoSessionMemoryInfoKHR set(int sType, long pNext, int memoryBindIndex, long memory, long memoryOffset, long memorySize)

Initializes this struct with the specified values.

setback to summary
public VkBindVideoSessionMemoryInfoKHR set(VkBindVideoSessionMemoryInfoKHR src)

Copies the specified struct data to this struct.

Parameters
src:VkBindVideoSessionMemoryInfoKHR

the source struct

Returns:VkBindVideoSessionMemoryInfoKHR

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
sTypeback to summary
public int sType()

a VkStructureType value identifying this structure.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkBindVideoSessionMemoryInfoKHR sType(int value)

Sets the specified value to the sType field.

sType$Defaultback to summary
public VkBindVideoSessionMemoryInfoKHR sType$Default()

Sets the STRUCTURE_TYPE_BIND_VIDEO_SESSION_MEMORY_INFO_KHR value to the sType field.

org.lwjgl.vulkan back to summary

public Class VkBindVideoSessionMemoryInfoKHR.Buffer

extends StructBuffer<VkBindVideoSessionMemoryInfoKHR, VkBindVideoSessionMemoryInfoKHR.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkBindVideoSessionMemoryInfoKHR structs.

Field Summary

Modifier and TypeField and Description
private static final VkBindVideoSessionMemoryInfoKHR

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkBindVideoSessionMemoryInfoKHR.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected VkBindVideoSessionMemoryInfoKHR
public long

Returns:

the value of the VkBindVideoSessionMemoryInfoKHR#memory field.
memory
()

public VkBindVideoSessionMemoryInfoKHR.Buffer
memory(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memory field.

public int
public VkBindVideoSessionMemoryInfoKHR.Buffer
memoryBindIndex(int value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memoryBindIndex field.

public long
public VkBindVideoSessionMemoryInfoKHR.Buffer
memoryOffset(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memoryOffset field.

public long

Returns:

the value of the VkBindVideoSessionMemoryInfoKHR#memorySize field.
memorySize
()

public VkBindVideoSessionMemoryInfoKHR.Buffer
memorySize(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memorySize field.

public long

Returns:

the value of the VkBindVideoSessionMemoryInfoKHR#pNext field.
pNext
()

public VkBindVideoSessionMemoryInfoKHR.Buffer
pNext(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#pNext field.

protected VkBindVideoSessionMemoryInfoKHR.Buffer
public int

Returns:

the value of the VkBindVideoSessionMemoryInfoKHR#sType field.
sType
()

public VkBindVideoSessionMemoryInfoKHR.Buffer
sType(int value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#sType field.

public VkBindVideoSessionMemoryInfoKHR.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkBindVideoSessionMemoryInfoKHR ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkBindVideoSessionMemoryInfoKHR.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkBindVideoSessionMemoryInfoKHR#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected VkBindVideoSessionMemoryInfoKHR getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
memoryback to summary
public long memory()
Returns:long

the value of the VkBindVideoSessionMemoryInfoKHR#memory field.

Annotations
@NativeType:VkDeviceMemory
memoryback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer memory(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memory field.

memoryBindIndexback to summary
public int memoryBindIndex()
Returns:int

the value of the VkBindVideoSessionMemoryInfoKHR#memoryBindIndex field.

Annotations
@NativeType:uint32_t
memoryBindIndexback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer memoryBindIndex(int value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memoryBindIndex field.

memoryOffsetback to summary
public long memoryOffset()
Returns:long

the value of the VkBindVideoSessionMemoryInfoKHR#memoryOffset field.

Annotations
@NativeType:VkDeviceSize
memoryOffsetback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer memoryOffset(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memoryOffset field.

memorySizeback to summary
public long memorySize()
Returns:long

the value of the VkBindVideoSessionMemoryInfoKHR#memorySize field.

Annotations
@NativeType:VkDeviceSize
memorySizeback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer memorySize(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#memorySize field.

pNextback to summary
public long pNext()
Returns:long

the value of the VkBindVideoSessionMemoryInfoKHR#pNext field.

Annotations
@NativeType:void const *
pNextback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer pNext(long value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#pNext field.

selfback to summary
protected VkBindVideoSessionMemoryInfoKHR.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
sTypeback to summary
public int sType()
Returns:int

the value of the VkBindVideoSessionMemoryInfoKHR#sType field.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer sType(int value)

Sets the specified value to the VkBindVideoSessionMemoryInfoKHR#sType field.

sType$Defaultback to summary
public VkBindVideoSessionMemoryInfoKHR.Buffer sType$Default()

Sets the STRUCTURE_TYPE_BIND_VIDEO_SESSION_MEMORY_INFO_KHR value to the VkBindVideoSessionMemoryInfoKHR#sType field.