public class VkBufferOpaqueCaptureAddressCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If opaqueCaptureAddress is zero, no specific address is requested.
If opaqueCaptureAddress is not zero, then it should be an address retrieved from GetBufferOpaqueCaptureAddressKHR for an identically created buffer on the same implementation.
If this structure is not present, it is as if opaqueCaptureAddress is zero.
Apps should avoid creating buffers with app-provided addresses and implementation-provided addresses in the same process, to reduce the likelihood of ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR errors.
The expected usage for this is that a trace capture/replay tool will add the BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR flag to all buffers that use BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_KHR, and during capture will save the queried opaque device addresses in the trace. During replay, the buffers will be created specifying the original address so any address values stored in the trace data will remain valid.
Implementations are expected to separate such buffers in the GPU address space so normal allocations will avoid using these addresses. Apps/tools should avoid mixing app-provided and implementation-provided addresses for buffers created with BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR, to avoid address space allocation conflicts.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.opaqueCaptureAddress – the opaque capture address requested for the buffer.
struct VkBufferOpaqueCaptureAddressCreateInfoKHR {
VkStructureType sType;
void const * pNext;
uint64_t opaqueCaptureAddress;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer
An array of
VkBufferOpaqueCaptureAddressCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
OPAQUECAPTUREADDRESS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkBufferOpaqueCaptureAddressCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkBufferOpaqueCaptureAddressCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
calloc()
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with memCalloc. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
callocStack()
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
create()
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with BufferUtils. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
create(long address)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance for the specified memory address. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance at the specified memory. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
createSafe(long address)
|
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
malloc()
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with memAlloc. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
mallocStack()
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkBufferOpaqueCaptureAddressCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the specified MemoryStack. |
static long |
nopaqueCaptureAddress(long struct)
Unsafe version of
opaqueCaptureAddress(). |
static void |
nopaqueCaptureAddress(long struct,
long value)
Unsafe version of
opaqueCaptureAddress. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
opaqueCaptureAddress()
Returns the value of the
opaqueCaptureAddress field. |
VkBufferOpaqueCaptureAddressCreateInfoKHR |
opaqueCaptureAddress(long value)
Sets the specified value to the
opaqueCaptureAddress field. |
long |
pNext()
Returns the value of the
pNext field. |
VkBufferOpaqueCaptureAddressCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBufferOpaqueCaptureAddressCreateInfoKHR |
set(int sType,
long pNext,
long opaqueCaptureAddress)
Initializes this struct with the specified values.
|
VkBufferOpaqueCaptureAddressCreateInfoKHR |
set(VkBufferOpaqueCaptureAddressCreateInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBufferOpaqueCaptureAddressCreateInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int OPAQUECAPTUREADDRESS
public VkBufferOpaqueCaptureAddressCreateInfoKHR(java.nio.ByteBuffer container)
VkBufferOpaqueCaptureAddressCreateInfoKHR 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long opaqueCaptureAddress()
opaqueCaptureAddress field.public VkBufferOpaqueCaptureAddressCreateInfoKHR sType(int value)
sType field.public VkBufferOpaqueCaptureAddressCreateInfoKHR pNext(long value)
pNext field.public VkBufferOpaqueCaptureAddressCreateInfoKHR opaqueCaptureAddress(long value)
opaqueCaptureAddress field.public VkBufferOpaqueCaptureAddressCreateInfoKHR set(int sType, long pNext, long opaqueCaptureAddress)
public VkBufferOpaqueCaptureAddressCreateInfoKHR set(VkBufferOpaqueCaptureAddressCreateInfoKHR src)
src - the source structpublic static VkBufferOpaqueCaptureAddressCreateInfoKHR malloc()
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkBufferOpaqueCaptureAddressCreateInfoKHR calloc()
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkBufferOpaqueCaptureAddressCreateInfoKHR create()
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated with BufferUtils.public static VkBufferOpaqueCaptureAddressCreateInfoKHR create(long address)
VkBufferOpaqueCaptureAddressCreateInfoKHR instance for the specified memory address.@Nullable public static VkBufferOpaqueCaptureAddressCreateInfoKHR createSafe(long address)
public static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer malloc(int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer calloc(int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer create(int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer create(long address, int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkBufferOpaqueCaptureAddressCreateInfoKHR mallocStack()
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkBufferOpaqueCaptureAddressCreateInfoKHR callocStack()
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBufferOpaqueCaptureAddressCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBufferOpaqueCaptureAddressCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkBufferOpaqueCaptureAddressCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer mallocStack(int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer callocStack(int capacity)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferOpaqueCaptureAddressCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nopaqueCaptureAddress(long struct)
opaqueCaptureAddress().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nopaqueCaptureAddress(long struct,
long value)
opaqueCaptureAddress.Copyright LWJGL. All Rights Reserved. License terms.