Package org.lwjgl.vulkan
Class VkBufferDeviceAddressInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferDeviceAddressInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkBufferDeviceAddressInfoEXT,VkBufferDeviceAddressInfoKHR
public class VkBufferDeviceAddressInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the buffer to query an address for.Valid Usage
- If
bufferis non-sparse and was not created with theBUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BITflag, then it must be bound completely and contiguously to a singleVkDeviceMemoryobject buffermust have been created withBUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFOpNextmust beNULLbuffermust be a validVkBufferhandle
See Also
GetBufferDeviceAddress,GetBufferDeviceAddressEXT,GetBufferDeviceAddressKHR,GetBufferOpaqueCaptureAddress,GetBufferOpaqueCaptureAddressKHRLayout
struct VkBufferDeviceAddressInfo { VkStructureTypesType(); void const *pNext(); VkBufferbuffer(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferDeviceAddressInfo.BufferAn array ofVkBufferDeviceAddressInfostructs.
-
Constructor Summary
Constructors Constructor Description VkBufferDeviceAddressInfo(java.nio.ByteBuffer container)Creates aVkBufferDeviceAddressInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbuffer()specifies the buffer whose address is being queried.VkBufferDeviceAddressInfobuffer(long value)Sets the specified value to thebuffer()field.static VkBufferDeviceAddressInfocalloc()Returns a newVkBufferDeviceAddressInfoinstance allocated withmemCalloc.static VkBufferDeviceAddressInfo.Buffercalloc(int capacity)Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withmemCalloc.static VkBufferDeviceAddressInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfocreate()Returns a newVkBufferDeviceAddressInfoinstance allocated withBufferUtils.static VkBufferDeviceAddressInfo.Buffercreate(int capacity)Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withBufferUtils.static VkBufferDeviceAddressInfocreate(long address)Returns a newVkBufferDeviceAddressInfoinstance for the specified memory address.static VkBufferDeviceAddressInfo.Buffercreate(long address, int capacity)Create aVkBufferDeviceAddressInfo.Bufferinstance at the specified memory.static VkBufferDeviceAddressInfocreateSafe(long address)static VkBufferDeviceAddressInfo.BuffercreateSafe(long address, int capacity)static VkBufferDeviceAddressInfomalloc()Returns a newVkBufferDeviceAddressInfoinstance allocated withmemAlloc.static VkBufferDeviceAddressInfo.Buffermalloc(int capacity)Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withmemAlloc.static VkBufferDeviceAddressInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferDeviceAddressInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoinstance allocated on the specifiedMemoryStack.static longnbuffer(long struct)Unsafe version ofbuffer().static voidnbuffer(long struct, long value)Unsafe version ofbuffer.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.VkBufferDeviceAddressInfopNext(long value)Sets the specified value to thepNext()field.VkBufferDeviceAddressInfoset(int sType, long pNext, long buffer)Initializes this struct with the specified values.VkBufferDeviceAddressInfoset(VkBufferDeviceAddressInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkBufferDeviceAddressInfosType(int value)Sets the specified value to thesType()field.VkBufferDeviceAddressInfosType$Default()Sets theSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkBufferDeviceAddressInfo
public VkBufferDeviceAddressInfo(java.nio.ByteBuffer container)
Creates aVkBufferDeviceAddressInfoinstance 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.
-
buffer
public long buffer()
specifies the buffer whose address is being queried.
-
sType
public VkBufferDeviceAddressInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBufferDeviceAddressInfo sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFOvalue to thesType()field.
-
pNext
public VkBufferDeviceAddressInfo pNext(long value)
Sets the specified value to thepNext()field.
-
buffer
public VkBufferDeviceAddressInfo buffer(long value)
Sets the specified value to thebuffer()field.
-
set
public VkBufferDeviceAddressInfo set(int sType, long pNext, long buffer)
Initializes this struct with the specified values.
-
set
public VkBufferDeviceAddressInfo set(VkBufferDeviceAddressInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferDeviceAddressInfo malloc()
Returns a newVkBufferDeviceAddressInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferDeviceAddressInfo calloc()
Returns a newVkBufferDeviceAddressInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferDeviceAddressInfo create()
Returns a newVkBufferDeviceAddressInfoinstance allocated withBufferUtils.
-
create
public static VkBufferDeviceAddressInfo create(long address)
Returns a newVkBufferDeviceAddressInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferDeviceAddressInfo createSafe(long address)
-
malloc
public static VkBufferDeviceAddressInfo.Buffer malloc(int capacity)
Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferDeviceAddressInfo.Buffer calloc(int capacity)
Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressInfo.Buffer create(int capacity)
Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressInfo.Buffer create(long address, int capacity)
Create aVkBufferDeviceAddressInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferDeviceAddressInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBufferDeviceAddressInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferDeviceAddressInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferDeviceAddressInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferDeviceAddressInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfo.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().
-
nbuffer
public static long nbuffer(long struct)
Unsafe version ofbuffer().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nbuffer
public static void nbuffer(long struct, long value)Unsafe version ofbuffer.
-
-