Class VkPhysicalDeviceBufferDeviceAddressFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceBufferDeviceAddressFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceBufferAddressFeaturesEXT
public class VkPhysicalDeviceBufferDeviceAddressFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing buffer address features that can be supported by an implementation.Description
If the
VkPhysicalDeviceBufferDeviceAddressFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Note
The
VkPhysicalDeviceBufferDeviceAddressFeaturesEXTstructure has the same members as theVkPhysicalDeviceBufferDeviceAddressFeaturesstructure, but the functionality indicated by the members is expressed differently. The features indicated by theVkPhysicalDeviceBufferDeviceAddressFeaturesstructure requires additional flags to be passed at memory allocation time, and the capture and replay mechanism is built around opaque capture addresses for buffer and memory objects.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceBufferDeviceAddressFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32bufferDeviceAddress(); VkBool32bufferDeviceAddressCaptureReplay(); VkBool32bufferDeviceAddressMultiDevice(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BufferAn array ofVkPhysicalDeviceBufferDeviceAddressFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUFFERDEVICEADDRESS
BUFFERDEVICEADDRESSCAPTUREREPLAY
BUFFERDEVICEADDRESSMULTIDEVICE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceBufferDeviceAddressFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanbufferDeviceAddress()indicates that the implementation supports accessing buffer memory in shaders as storage buffers via an address queried fromGetBufferDeviceAddressEXT.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTbufferDeviceAddress(boolean value)Sets the specified value to thebufferDeviceAddress()field.booleanbufferDeviceAddressCaptureReplay()indicates that the implementation supports saving and reusing buffer addresses, e.g.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTbufferDeviceAddressCaptureReplay(boolean value)Sets the specified value to thebufferDeviceAddressCaptureReplay()field.booleanbufferDeviceAddressMultiDevice()indicates that the implementation supports thebufferDeviceAddressfeature for logical devices created with multiple physical devices.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTbufferDeviceAddressMultiDevice(boolean value)Sets the specified value to thebufferDeviceAddressMultiDevice()field.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcalloc()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcallocStack()Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcreate()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTmalloc()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTmallocStack()Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceBufferDeviceAddressFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnbufferDeviceAddress(long struct)Unsafe version ofbufferDeviceAddress().static voidnbufferDeviceAddress(long struct, int value)Unsafe version ofbufferDeviceAddress.static intnbufferDeviceAddressCaptureReplay(long struct)Unsafe version ofbufferDeviceAddressCaptureReplay().static voidnbufferDeviceAddressCaptureReplay(long struct, int value)Unsafe version ofbufferDeviceAddressCaptureReplay.static intnbufferDeviceAddressMultiDevice(long struct)Unsafe version ofbufferDeviceAddressMultiDevice().static voidnbufferDeviceAddressMultiDevice(long struct, int value)Unsafe version ofbufferDeviceAddressMultiDevice.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.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTset(int sType, long pNext, boolean bufferDeviceAddress, boolean bufferDeviceAddressCaptureReplay, boolean bufferDeviceAddressMultiDevice)Initializes this struct with the specified values.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTset(VkPhysicalDeviceBufferDeviceAddressFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceBufferDeviceAddressFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceBufferDeviceAddressFeaturesEXT
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance 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.
-
bufferDeviceAddress
public boolean bufferDeviceAddress()
indicates that the implementation supports accessing buffer memory in shaders as storage buffers via an address queried fromGetBufferDeviceAddressEXT.
-
bufferDeviceAddressCaptureReplay
public boolean bufferDeviceAddressCaptureReplay()
indicates that the implementation supports saving and reusing buffer addresses, e.g. for trace capture and replay.
-
bufferDeviceAddressMultiDevice
public boolean bufferDeviceAddressMultiDevice()
indicates that the implementation supports thebufferDeviceAddressfeature 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.
-
sType
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
bufferDeviceAddress
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT bufferDeviceAddress(boolean value)
Sets the specified value to thebufferDeviceAddress()field.
-
bufferDeviceAddressCaptureReplay
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT bufferDeviceAddressCaptureReplay(boolean value)
Sets the specified value to thebufferDeviceAddressCaptureReplay()field.
-
bufferDeviceAddressMultiDevice
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT bufferDeviceAddressMultiDevice(boolean value)
Sets the specified value to thebufferDeviceAddressMultiDevice()field.
-
set
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT set(int sType, long pNext, boolean bufferDeviceAddress, boolean bufferDeviceAddressCaptureReplay, boolean bufferDeviceAddressMultiDevice)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceBufferDeviceAddressFeaturesEXT set(VkPhysicalDeviceBufferDeviceAddressFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT malloc()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT calloc()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT create()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesEXT.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().
-
nbufferDeviceAddress
public static int nbufferDeviceAddress(long struct)
Unsafe version ofbufferDeviceAddress().
-
nbufferDeviceAddressCaptureReplay
public static int nbufferDeviceAddressCaptureReplay(long struct)
Unsafe version ofbufferDeviceAddressCaptureReplay().
-
nbufferDeviceAddressMultiDevice
public static int nbufferDeviceAddressMultiDevice(long struct)
Unsafe version ofbufferDeviceAddressMultiDevice().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nbufferDeviceAddress
public static void nbufferDeviceAddress(long struct, int value)Unsafe version ofbufferDeviceAddress.
-
nbufferDeviceAddressCaptureReplay
public static void nbufferDeviceAddressCaptureReplay(long struct, int value)Unsafe version ofbufferDeviceAddressCaptureReplay.
-
nbufferDeviceAddressMultiDevice
public static void nbufferDeviceAddressMultiDevice(long struct, int value)Unsafe version ofbufferDeviceAddressMultiDevice.
-
-