Class VkMemoryOpaqueCaptureAddressAllocateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryOpaqueCaptureAddressAllocateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkMemoryOpaqueCaptureAddressAllocateInfoKHR
public class VkMemoryOpaqueCaptureAddressAllocateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRequest a specific address for a memory allocation.Description
If
opaqueCaptureAddressis zero, no specific address is requested.If
opaqueCaptureAddressis not zero, it should be an address retrieved fromGetDeviceMemoryOpaqueCaptureAddresson an identically created memory allocation on the same implementation.Note
In most cases, it is expected that a non-zero
opaqueAddressis an address retrieved fromGetDeviceMemoryOpaqueCaptureAddresson an identically created memory allocation. If this is not the case, it is likely thatERROR_INVALID_OPAQUE_CAPTURE_ADDRESSerrors will occur.This is, however, not a strict requirement because trace capture/replay tools may need to adjust memory allocation parameters for imported memory.
If this structure is not present, it is as if
opaqueCaptureAddressis zero.Valid Usage (Implicit)
Layout
struct VkMemoryOpaqueCaptureAddressAllocateInfo { VkStructureTypesType(); void const *pNext(); uint64_topaqueCaptureAddress(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryOpaqueCaptureAddressAllocateInfo.BufferAn array ofVkMemoryOpaqueCaptureAddressAllocateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOPAQUECAPTUREADDRESS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkMemoryOpaqueCaptureAddressAllocateInfo(java.nio.ByteBuffer container)Creates aVkMemoryOpaqueCaptureAddressAllocateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryOpaqueCaptureAddressAllocateInfocalloc()Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withmemCalloc.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffercalloc(int capacity)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withmemCalloc.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryOpaqueCaptureAddressAllocateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryOpaqueCaptureAddressAllocateInfocreate()Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withBufferUtils.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffercreate(int capacity)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withBufferUtils.static VkMemoryOpaqueCaptureAddressAllocateInfocreate(long address)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance for the specified memory address.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffercreate(long address, int capacity)Create aVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance at the specified memory.static VkMemoryOpaqueCaptureAddressAllocateInfocreateSafe(long address)static VkMemoryOpaqueCaptureAddressAllocateInfo.BuffercreateSafe(long address, int capacity)static VkMemoryOpaqueCaptureAddressAllocateInfomalloc()Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withmemAlloc.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffermalloc(int capacity)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withmemAlloc.static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryOpaqueCaptureAddressAllocateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated on the specifiedMemoryStack.static longnopaqueCaptureAddress(long struct)Unsafe version ofopaqueCaptureAddress().static voidnopaqueCaptureAddress(long struct, long value)Unsafe version ofopaqueCaptureAddress.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.longopaqueCaptureAddress()the opaque capture address requested for the memory allocation.VkMemoryOpaqueCaptureAddressAllocateInfoopaqueCaptureAddress(long value)Sets the specified value to theopaqueCaptureAddress()field.longpNext()NULLor a pointer to a structure extending this structure.VkMemoryOpaqueCaptureAddressAllocateInfopNext(long value)Sets the specified value to thepNext()field.VkMemoryOpaqueCaptureAddressAllocateInfoset(int sType, long pNext, long opaqueCaptureAddress)Initializes this struct with the specified values.VkMemoryOpaqueCaptureAddressAllocateInfoset(VkMemoryOpaqueCaptureAddressAllocateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkMemoryOpaqueCaptureAddressAllocateInfosType(int value)Sets the specified value to thesType()field.VkMemoryOpaqueCaptureAddressAllocateInfosType$Default()Sets theSTRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkMemoryOpaqueCaptureAddressAllocateInfo
public VkMemoryOpaqueCaptureAddressAllocateInfo(java.nio.ByteBuffer container)
Creates aVkMemoryOpaqueCaptureAddressAllocateInfoinstance 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.
-
opaqueCaptureAddress
public long opaqueCaptureAddress()
the opaque capture address requested for the memory allocation.
-
sType
public VkMemoryOpaqueCaptureAddressAllocateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkMemoryOpaqueCaptureAddressAllocateInfo sType$Default()
Sets theSTRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFOvalue to thesType()field.
-
pNext
public VkMemoryOpaqueCaptureAddressAllocateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
opaqueCaptureAddress
public VkMemoryOpaqueCaptureAddressAllocateInfo opaqueCaptureAddress(long value)
Sets the specified value to theopaqueCaptureAddress()field.
-
set
public VkMemoryOpaqueCaptureAddressAllocateInfo set(int sType, long pNext, long opaqueCaptureAddress)
Initializes this struct with the specified values.
-
set
public VkMemoryOpaqueCaptureAddressAllocateInfo set(VkMemoryOpaqueCaptureAddressAllocateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo malloc()
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo calloc()
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryOpaqueCaptureAddressAllocateInfo create()
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated withBufferUtils.
-
create
public static VkMemoryOpaqueCaptureAddressAllocateInfo create(long address)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryOpaqueCaptureAddressAllocateInfo createSafe(long address)
-
malloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer malloc(int capacity)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer calloc(int capacity)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer create(int capacity)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer create(long address, int capacity)
Create aVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMemoryOpaqueCaptureAddressAllocateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryOpaqueCaptureAddressAllocateInfo.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().
-
nopaqueCaptureAddress
public static long nopaqueCaptureAddress(long struct)
Unsafe version ofopaqueCaptureAddress().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nopaqueCaptureAddress
public static void nopaqueCaptureAddress(long struct, long value)Unsafe version ofopaqueCaptureAddress.
-
-