public class VkBufferDeviceAddressCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If deviceAddress is zero, no specific address is requested.
If deviceAddress is not zero, then it must be an address retrieved from an identically created buffer on the same implementation. The buffer must also be bound to an identically created VkDeviceMemory object.
If this structure is not present, it is as if deviceAddress 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_DEVICE_ADDRESS_EXT errors.
sType must be STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXTsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.deviceAddress – the device address requested for the buffer.
struct VkBufferDeviceAddressCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkDeviceAddress deviceAddress;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBufferDeviceAddressCreateInfoEXT.Buffer
An array of
VkBufferDeviceAddressCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEADDRESS
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 |
|---|
VkBufferDeviceAddressCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkBufferDeviceAddressCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBufferDeviceAddressCreateInfoEXT |
calloc()
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated with memCalloc. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkBufferDeviceAddressCreateInfoEXT |
callocStack()
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferDeviceAddressCreateInfoEXT |
create()
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated with BufferUtils. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkBufferDeviceAddressCreateInfoEXT |
create(long address)
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance for the specified memory address. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkBufferDeviceAddressCreateInfoEXT.Buffer instance at the specified memory. |
static VkBufferDeviceAddressCreateInfoEXT |
createSafe(long address)
|
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
long |
deviceAddress()
Returns the value of the
deviceAddress field. |
VkBufferDeviceAddressCreateInfoEXT |
deviceAddress(long value)
Sets the specified value to the
deviceAddress field. |
static VkBufferDeviceAddressCreateInfoEXT |
malloc()
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated with memAlloc. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkBufferDeviceAddressCreateInfoEXT |
mallocStack()
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkBufferDeviceAddressCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkBufferDeviceAddressCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferDeviceAddressCreateInfoEXT instance allocated on the specified MemoryStack. |
static long |
ndeviceAddress(long struct)
Unsafe version of
deviceAddress(). |
static void |
ndeviceAddress(long struct,
long value)
Unsafe version of
deviceAddress. |
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. |
VkBufferDeviceAddressCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBufferDeviceAddressCreateInfoEXT |
set(int sType,
long pNext,
long deviceAddress)
Initializes this struct with the specified values.
|
VkBufferDeviceAddressCreateInfoEXT |
set(VkBufferDeviceAddressCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBufferDeviceAddressCreateInfoEXT |
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 DEVICEADDRESS
public VkBufferDeviceAddressCreateInfoEXT(java.nio.ByteBuffer container)
VkBufferDeviceAddressCreateInfoEXT 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 deviceAddress()
deviceAddress field.public VkBufferDeviceAddressCreateInfoEXT sType(int value)
sType field.public VkBufferDeviceAddressCreateInfoEXT pNext(long value)
pNext field.public VkBufferDeviceAddressCreateInfoEXT deviceAddress(long value)
deviceAddress field.public VkBufferDeviceAddressCreateInfoEXT set(int sType, long pNext, long deviceAddress)
public VkBufferDeviceAddressCreateInfoEXT set(VkBufferDeviceAddressCreateInfoEXT src)
src - the source structpublic static VkBufferDeviceAddressCreateInfoEXT malloc()
VkBufferDeviceAddressCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkBufferDeviceAddressCreateInfoEXT calloc()
VkBufferDeviceAddressCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkBufferDeviceAddressCreateInfoEXT create()
VkBufferDeviceAddressCreateInfoEXT instance allocated with BufferUtils.public static VkBufferDeviceAddressCreateInfoEXT create(long address)
VkBufferDeviceAddressCreateInfoEXT instance for the specified memory address.@Nullable public static VkBufferDeviceAddressCreateInfoEXT createSafe(long address)
public static VkBufferDeviceAddressCreateInfoEXT.Buffer malloc(int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer calloc(int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer create(int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer create(long address, int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBufferDeviceAddressCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkBufferDeviceAddressCreateInfoEXT mallocStack()
VkBufferDeviceAddressCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkBufferDeviceAddressCreateInfoEXT callocStack()
VkBufferDeviceAddressCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBufferDeviceAddressCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBufferDeviceAddressCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBufferDeviceAddressCreateInfoEXT.Buffer mallocStack(int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer callocStack(int capacity)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBufferDeviceAddressCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferDeviceAddressCreateInfoEXT.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 ndeviceAddress(long struct)
deviceAddress().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndeviceAddress(long struct,
long value)
deviceAddress.Copyright LWJGL. All Rights Reserved. License terms.