public class VkBufferDeviceAddressInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
buffer is non-sparse and was not created with the BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR flag, then it must be bound completely and contiguously to a single VkDeviceMemory objectbuffer must have been created with BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_KHRsType must be STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO_KHRpNext must be NULLbuffer must be a valid VkBuffer handleGetBufferDeviceAddressEXT, GetBufferDeviceAddressKHR, GetBufferOpaqueCaptureAddressKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.buffer – specifies the buffer whose address is being queried.
struct VkBufferDeviceAddressInfoKHR {
VkStructureType sType;
void const * pNext;
VkBuffer buffer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBufferDeviceAddressInfoKHR.Buffer
An array of
VkBufferDeviceAddressInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
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 |
|---|
VkBufferDeviceAddressInfoKHR(java.nio.ByteBuffer container)
Creates a
VkBufferDeviceAddressInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
buffer()
Returns the value of the
buffer field. |
VkBufferDeviceAddressInfoKHR |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkBufferDeviceAddressInfoKHR |
calloc()
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated with memCalloc. |
static VkBufferDeviceAddressInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with memCalloc. |
static VkBufferDeviceAddressInfoKHR |
callocStack()
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressInfoKHR |
create()
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated with BufferUtils. |
static VkBufferDeviceAddressInfoKHR.Buffer |
create(int capacity)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with BufferUtils. |
static VkBufferDeviceAddressInfoKHR |
create(long address)
Returns a new
VkBufferDeviceAddressInfoKHR instance for the specified memory address. |
static VkBufferDeviceAddressInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkBufferDeviceAddressInfoKHR.Buffer instance at the specified memory. |
static VkBufferDeviceAddressInfoKHR |
createSafe(long address)
|
static VkBufferDeviceAddressInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkBufferDeviceAddressInfoKHR |
malloc()
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated with memAlloc. |
static VkBufferDeviceAddressInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with memAlloc. |
static VkBufferDeviceAddressInfoKHR |
mallocStack()
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated on the thread-local MemoryStack. |
static VkBufferDeviceAddressInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkBufferDeviceAddressInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkBufferDeviceAddressInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressInfoKHR instance allocated on the specified MemoryStack. |
static long |
nbuffer(long struct)
Unsafe version of
buffer(). |
static void |
nbuffer(long struct,
long value)
Unsafe version of
buffer. |
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 |
pNext()
Returns the value of the
pNext field. |
VkBufferDeviceAddressInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBufferDeviceAddressInfoKHR |
set(int sType,
long pNext,
long buffer)
Initializes this struct with the specified values.
|
VkBufferDeviceAddressInfoKHR |
set(VkBufferDeviceAddressInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBufferDeviceAddressInfoKHR |
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 BUFFER
public VkBufferDeviceAddressInfoKHR(java.nio.ByteBuffer container)
VkBufferDeviceAddressInfoKHR 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 buffer()
buffer field.public VkBufferDeviceAddressInfoKHR sType(int value)
sType field.public VkBufferDeviceAddressInfoKHR pNext(long value)
pNext field.public VkBufferDeviceAddressInfoKHR buffer(long value)
buffer field.public VkBufferDeviceAddressInfoKHR set(int sType, long pNext, long buffer)
public VkBufferDeviceAddressInfoKHR set(VkBufferDeviceAddressInfoKHR src)
src - the source structpublic static VkBufferDeviceAddressInfoKHR malloc()
VkBufferDeviceAddressInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkBufferDeviceAddressInfoKHR calloc()
VkBufferDeviceAddressInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkBufferDeviceAddressInfoKHR create()
VkBufferDeviceAddressInfoKHR instance allocated with BufferUtils.public static VkBufferDeviceAddressInfoKHR create(long address)
VkBufferDeviceAddressInfoKHR instance for the specified memory address.@Nullable public static VkBufferDeviceAddressInfoKHR createSafe(long address)
public static VkBufferDeviceAddressInfoKHR.Buffer malloc(int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer calloc(int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer create(int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer create(long address, int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBufferDeviceAddressInfoKHR.Buffer createSafe(long address, int capacity)
public static VkBufferDeviceAddressInfoKHR mallocStack()
VkBufferDeviceAddressInfoKHR instance allocated on the thread-local MemoryStack.public static VkBufferDeviceAddressInfoKHR callocStack()
VkBufferDeviceAddressInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBufferDeviceAddressInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBufferDeviceAddressInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBufferDeviceAddressInfoKHR.Buffer mallocStack(int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer callocStack(int capacity)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBufferDeviceAddressInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressInfoKHR.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 nbuffer(long struct)
buffer().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nbuffer(long struct,
long value)
buffer.Copyright LWJGL. All Rights Reserved. License terms.