public class VkPhysicalDeviceBufferDeviceAddressFeaturesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
bufferDeviceAddressMultiDevice exists to allow certain legacy platforms to be able to support bufferDeviceAddress without needing to support shared GPU virtual addresses for multi-device configurations.
See GetBufferDeviceAddressKHR for more information.
If the VkPhysicalDeviceBufferDeviceAddressFeaturesKHR structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported. VkPhysicalDeviceBufferDeviceAddressFeaturesKHR can also be included in the pNext chain of VkDeviceCreateInfo to enable features.
bufferDeviceAddress – indicates that the implementation supports accessing buffer memory in shaders as storage buffers via an address queried from GetBufferDeviceAddressKHR.bufferDeviceAddressCaptureReplay – indicates that the implementation supports saving and reusing buffer and device addresses, e.g. for trace capture and replay.bufferDeviceAddressMultiDevice – indicates that the implementation supports the bufferDeviceAddress feature for logical devices created with multiple physical devices. If this feature is not supported, buffer addresses must not be queried on a logical device created with more than one physical device.
struct VkPhysicalDeviceBufferDeviceAddressFeaturesKHR {
VkStructureType sType;
void * pNext;
VkBool32 bufferDeviceAddress;
VkBool32 bufferDeviceAddressCaptureReplay;
VkBool32 bufferDeviceAddressMultiDevice;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer
An array of
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFERDEVICEADDRESS
The struct member offsets.
|
static int |
BUFFERDEVICEADDRESSCAPTUREREPLAY
The struct member offsets.
|
static int |
BUFFERDEVICEADDRESSMULTIDEVICE
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 |
|---|
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bufferDeviceAddress()
Returns the value of the
bufferDeviceAddress field. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
bufferDeviceAddress(boolean value)
Sets the specified value to the
bufferDeviceAddress field. |
boolean |
bufferDeviceAddressCaptureReplay()
Returns the value of the
bufferDeviceAddressCaptureReplay field. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
bufferDeviceAddressCaptureReplay(boolean value)
Sets the specified value to the
bufferDeviceAddressCaptureReplay field. |
boolean |
bufferDeviceAddressMultiDevice()
Returns the value of the
bufferDeviceAddressMultiDevice field. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
bufferDeviceAddressMultiDevice(boolean value)
Sets the specified value to the
bufferDeviceAddressMultiDevice field. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
calloc()
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with memCalloc. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
callocStack()
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
create()
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with BufferUtils. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
create(long address)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance for the specified memory address. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance at the specified memory. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
createSafe(long address)
|
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
malloc()
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with memAlloc. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
mallocStack()
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the specified MemoryStack. |
static int |
nbufferDeviceAddress(long struct)
Unsafe version of
bufferDeviceAddress(). |
static void |
nbufferDeviceAddress(long struct,
int value)
Unsafe version of
bufferDeviceAddress. |
static int |
nbufferDeviceAddressCaptureReplay(long struct)
Unsafe version of
bufferDeviceAddressCaptureReplay(). |
static void |
nbufferDeviceAddressCaptureReplay(long struct,
int value)
Unsafe version of
bufferDeviceAddressCaptureReplay. |
static int |
nbufferDeviceAddressMultiDevice(long struct)
Unsafe version of
bufferDeviceAddressMultiDevice(). |
static void |
nbufferDeviceAddressMultiDevice(long struct,
int value)
Unsafe version of
bufferDeviceAddressMultiDevice. |
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. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
set(int sType,
long pNext,
boolean bufferDeviceAddress,
boolean bufferDeviceAddressCaptureReplay,
boolean bufferDeviceAddressMultiDevice)
Initializes this struct with the specified values.
|
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
set(VkPhysicalDeviceBufferDeviceAddressFeaturesKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR |
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 BUFFERDEVICEADDRESS
public static final int BUFFERDEVICEADDRESSCAPTUREREPLAY
public static final int BUFFERDEVICEADDRESSMULTIDEVICE
public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR(java.nio.ByteBuffer container)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR 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 boolean bufferDeviceAddress()
bufferDeviceAddress field.public boolean bufferDeviceAddressCaptureReplay()
bufferDeviceAddressCaptureReplay field.public boolean bufferDeviceAddressMultiDevice()
bufferDeviceAddressMultiDevice field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR sType(int value)
sType field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR pNext(long value)
pNext field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR bufferDeviceAddress(boolean value)
bufferDeviceAddress field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR bufferDeviceAddressCaptureReplay(boolean value)
bufferDeviceAddressCaptureReplay field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR bufferDeviceAddressMultiDevice(boolean value)
bufferDeviceAddressMultiDevice field.public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR set(int sType, long pNext, boolean bufferDeviceAddress, boolean bufferDeviceAddressCaptureReplay, boolean bufferDeviceAddressMultiDevice)
public VkPhysicalDeviceBufferDeviceAddressFeaturesKHR set(VkPhysicalDeviceBufferDeviceAddressFeaturesKHR src)
src - the source structpublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR malloc()
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR calloc()
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR create()
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated with BufferUtils.public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR create(long address)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance for the specified memory address.@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR createSafe(long address)
public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer malloc(int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer calloc(int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer create(int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer create(long address, int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR mallocStack()
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR callocStack()
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer mallocStack(int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer callocStack(int capacity)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR.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 int nbufferDeviceAddress(long struct)
bufferDeviceAddress().public static int nbufferDeviceAddressCaptureReplay(long struct)
bufferDeviceAddressCaptureReplay().public static int nbufferDeviceAddressMultiDevice(long struct)
bufferDeviceAddressMultiDevice().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nbufferDeviceAddress(long struct,
int value)
bufferDeviceAddress.public static void nbufferDeviceAddressCaptureReplay(long struct,
int value)
bufferDeviceAddressCaptureReplay.public static void nbufferDeviceAddressMultiDevice(long struct,
int value)
bufferDeviceAddressMultiDevice.Copyright LWJGL. All Rights Reserved. License terms.