Package org.lwjgl.vulkan
Class VkPhysicalDeviceBufferDeviceAddressFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceBufferDeviceAddressFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR
public class VkPhysicalDeviceBufferDeviceAddressFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing buffer address features that can be supported by an implementation.Description
Note
bufferDeviceAddressMultiDeviceexists to allow certain legacy platforms to be able to supportbufferDeviceAddresswithout needing to support shared GPU virtual addresses for multi-device configurations.See
GetBufferDeviceAddressfor more information.If the
VkPhysicalDeviceBufferDeviceAddressFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceBufferDeviceAddressFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceBufferDeviceAddressFeatures { VkStructureTypesType(); void *pNext(); VkBool32bufferDeviceAddress(); VkBool32bufferDeviceAddressCaptureReplay(); VkBool32bufferDeviceAddressMultiDevice(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceBufferDeviceAddressFeatures.BufferAn array ofVkPhysicalDeviceBufferDeviceAddressFeaturesstructs.
-
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 VkPhysicalDeviceBufferDeviceAddressFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceBufferDeviceAddressFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbufferDeviceAddress()indicates that the implementation supports accessing buffer memory in shaders as storage buffers via an address queried fromGetBufferDeviceAddress.VkPhysicalDeviceBufferDeviceAddressFeaturesbufferDeviceAddress(boolean value)Sets the specified value to thebufferDeviceAddress()field.booleanbufferDeviceAddressCaptureReplay()indicates that the implementation supports saving and reusing buffer and device addresses, e.g.VkPhysicalDeviceBufferDeviceAddressFeaturesbufferDeviceAddressCaptureReplay(boolean value)Sets the specified value to thebufferDeviceAddressCaptureReplay()field.booleanbufferDeviceAddressMultiDevice()indicates that the implementation supports thebufferDeviceAddress,rayTracingPipelineandrayQueryfeatures for logical devices created with multiple physical devices.VkPhysicalDeviceBufferDeviceAddressFeaturesbufferDeviceAddressMultiDevice(boolean value)Sets the specified value to thebufferDeviceAddressMultiDevice()field.static VkPhysicalDeviceBufferDeviceAddressFeaturescalloc()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBufferDeviceAddressFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceBufferDeviceAddressFeaturescreate()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceBufferDeviceAddressFeaturescreate(long address)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance for the specified memory address.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceBufferDeviceAddressFeaturescreateSafe(long address)static VkPhysicalDeviceBufferDeviceAddressFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceBufferDeviceAddressFeaturesmalloc()Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceBufferDeviceAddressFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated on the specifiedMemoryStack.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.VkPhysicalDeviceBufferDeviceAddressFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceBufferDeviceAddressFeaturesset(int sType, long pNext, boolean bufferDeviceAddress, boolean bufferDeviceAddressCaptureReplay, boolean bufferDeviceAddressMultiDevice)Initializes this struct with the specified values.VkPhysicalDeviceBufferDeviceAddressFeaturesset(VkPhysicalDeviceBufferDeviceAddressFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceBufferDeviceAddressFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceBufferDeviceAddressFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceBufferDeviceAddressFeatures
public VkPhysicalDeviceBufferDeviceAddressFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceBufferDeviceAddressFeaturesinstance 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 fromGetBufferDeviceAddress.
-
bufferDeviceAddressCaptureReplay
public boolean bufferDeviceAddressCaptureReplay()
indicates that the implementation supports saving and reusing buffer and device addresses, e.g. for trace capture and replay.
-
bufferDeviceAddressMultiDevice
public boolean bufferDeviceAddressMultiDevice()
indicates that the implementation supports thebufferDeviceAddress,rayTracingPipelineandrayQueryfeatures for logical devices created with multiple physical devices. If this feature is not supported, buffer and acceleration structure addresses must not be queried on a logical device created with more than one physical device.
-
sType
public VkPhysicalDeviceBufferDeviceAddressFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceBufferDeviceAddressFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceBufferDeviceAddressFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
bufferDeviceAddress
public VkPhysicalDeviceBufferDeviceAddressFeatures bufferDeviceAddress(boolean value)
Sets the specified value to thebufferDeviceAddress()field.
-
bufferDeviceAddressCaptureReplay
public VkPhysicalDeviceBufferDeviceAddressFeatures bufferDeviceAddressCaptureReplay(boolean value)
Sets the specified value to thebufferDeviceAddressCaptureReplay()field.
-
bufferDeviceAddressMultiDevice
public VkPhysicalDeviceBufferDeviceAddressFeatures bufferDeviceAddressMultiDevice(boolean value)
Sets the specified value to thebufferDeviceAddressMultiDevice()field.
-
set
public VkPhysicalDeviceBufferDeviceAddressFeatures set(int sType, long pNext, boolean bufferDeviceAddress, boolean bufferDeviceAddressCaptureReplay, boolean bufferDeviceAddressMultiDevice)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceBufferDeviceAddressFeatures set(VkPhysicalDeviceBufferDeviceAddressFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures malloc()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures calloc()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeatures create()
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeatures create(long address)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceBufferDeviceAddressFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceBufferDeviceAddressFeatures.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.
-
-