Package org.lwjgl.vulkan
Class VkBufferDeviceAddressInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferDeviceAddressInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferDeviceAddressInfoEXT 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_BIT_EXTflag, then it must be bound completely and contiguously to a singleVkDeviceMemoryobject buffermust have been created withBUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_EXT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO_EXTpNextmust beNULLbuffermust be a validVkBufferhandle
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.buffer– specifies the buffer whose address is being queried.
Layout
struct VkBufferDeviceAddressInfoEXT { VkStructureType sType; void const * pNext; VkBuffer buffer; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferDeviceAddressInfoEXT.BufferAn array ofVkBufferDeviceAddressInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkBufferDeviceAddressInfoEXT(java.nio.ByteBuffer container)Creates aVkBufferDeviceAddressInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbuffer()Returns the value of thebufferfield.VkBufferDeviceAddressInfoEXTbuffer(long value)Sets the specified value to thebufferfield.static VkBufferDeviceAddressInfoEXTcalloc()Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withmemCalloc.static VkBufferDeviceAddressInfoEXT.Buffercalloc(int capacity)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withmemCalloc.static VkBufferDeviceAddressInfoEXTcallocStack()Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT.BuffercallocStack(int capacity)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressInfoEXTcreate()Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withBufferUtils.static VkBufferDeviceAddressInfoEXT.Buffercreate(int capacity)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withBufferUtils.static VkBufferDeviceAddressInfoEXTcreate(long address)Returns a newVkBufferDeviceAddressInfoEXTinstance for the specified memory address.static VkBufferDeviceAddressInfoEXT.Buffercreate(long address, int capacity)Create aVkBufferDeviceAddressInfoEXT.Bufferinstance at the specified memory.static VkBufferDeviceAddressInfoEXTcreateSafe(long address)static VkBufferDeviceAddressInfoEXT.BuffercreateSafe(long address, int capacity)static VkBufferDeviceAddressInfoEXTmalloc()Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withmemAlloc.static VkBufferDeviceAddressInfoEXT.Buffermalloc(int capacity)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withmemAlloc.static VkBufferDeviceAddressInfoEXTmallocStack()Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the thread-localMemoryStack.static VkBufferDeviceAddressInfoEXT.BuffermallocStack(int capacity)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkBufferDeviceAddressInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferDeviceAddressInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressInfoEXTinstance 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()Returns the value of thepNextfield.VkBufferDeviceAddressInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkBufferDeviceAddressInfoEXTset(int sType, long pNext, long buffer)Initializes this struct with the specified values.VkBufferDeviceAddressInfoEXTset(VkBufferDeviceAddressInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkBufferDeviceAddressInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkBufferDeviceAddressInfoEXT
public VkBufferDeviceAddressInfoEXT(java.nio.ByteBuffer container)
Creates aVkBufferDeviceAddressInfoEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
buffer
public long buffer()
Returns the value of thebufferfield.
-
sType
public VkBufferDeviceAddressInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBufferDeviceAddressInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
buffer
public VkBufferDeviceAddressInfoEXT buffer(long value)
Sets the specified value to thebufferfield.
-
set
public VkBufferDeviceAddressInfoEXT set(int sType, long pNext, long buffer)
Initializes this struct with the specified values.
-
set
public VkBufferDeviceAddressInfoEXT set(VkBufferDeviceAddressInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferDeviceAddressInfoEXT malloc()
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferDeviceAddressInfoEXT calloc()
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferDeviceAddressInfoEXT create()
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated withBufferUtils.
-
create
public static VkBufferDeviceAddressInfoEXT create(long address)
Returns a newVkBufferDeviceAddressInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferDeviceAddressInfoEXT createSafe(long address)
-
malloc
public static VkBufferDeviceAddressInfoEXT.Buffer malloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferDeviceAddressInfoEXT.Buffer calloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressInfoEXT.Buffer create(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressInfoEXT.Buffer create(long address, int capacity)
Create aVkBufferDeviceAddressInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferDeviceAddressInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBufferDeviceAddressInfoEXT mallocStack()
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBufferDeviceAddressInfoEXT callocStack()
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBufferDeviceAddressInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBufferDeviceAddressInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBufferDeviceAddressInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBufferDeviceAddressInfoEXT.Buffer callocStack(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBufferDeviceAddressInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBufferDeviceAddressInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT.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.
-
-