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.NativeResource
Structure specifying the buffer to query an address for.Valid Usage
- If
buffer
is non-sparse and was not created with theBUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_EXT
flag, then it must be bound completely and contiguously to a singleVkDeviceMemory
object buffer
must have been created withBUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_EXT
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO_EXT
pNext
must beNULL
buffer
must be a validVkBuffer
handle
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkBufferDeviceAddressInfoEXT.Buffer
An array ofVkBufferDeviceAddressInfoEXT
structs.
-
Constructor Summary
Constructors Constructor Description VkBufferDeviceAddressInfoEXT(java.nio.ByteBuffer container)
Creates aVkBufferDeviceAddressInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
buffer()
Returns the value of thebuffer
field.VkBufferDeviceAddressInfoEXT
buffer(long value)
Sets the specified value to thebuffer
field.static VkBufferDeviceAddressInfoEXT
calloc()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated withmemCalloc
.static VkBufferDeviceAddressInfoEXT.Buffer
calloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withmemCalloc
.static VkBufferDeviceAddressInfoEXT
callocStack()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBufferDeviceAddressInfoEXT
create()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated withBufferUtils
.static VkBufferDeviceAddressInfoEXT.Buffer
create(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withBufferUtils
.static VkBufferDeviceAddressInfoEXT
create(long address)
Returns a newVkBufferDeviceAddressInfoEXT
instance for the specified memory address.static VkBufferDeviceAddressInfoEXT.Buffer
create(long address, int capacity)
Create aVkBufferDeviceAddressInfoEXT.Buffer
instance at the specified memory.static VkBufferDeviceAddressInfoEXT
createSafe(long address)
static VkBufferDeviceAddressInfoEXT.Buffer
createSafe(long address, int capacity)
static VkBufferDeviceAddressInfoEXT
malloc()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated withmemAlloc
.static VkBufferDeviceAddressInfoEXT.Buffer
malloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withmemAlloc
.static VkBufferDeviceAddressInfoEXT
mallocStack()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the thread-localMemoryStack
.static VkBufferDeviceAddressInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkBufferDeviceAddressInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkBufferDeviceAddressInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the specifiedMemoryStack
.static long
nbuffer(long struct)
Unsafe version ofbuffer()
.static void
nbuffer(long struct, long value)
Unsafe version ofbuffer
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkBufferDeviceAddressInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkBufferDeviceAddressInfoEXT
set(int sType, long pNext, long buffer)
Initializes this struct with the specified values.VkBufferDeviceAddressInfoEXT
set(VkBufferDeviceAddressInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkBufferDeviceAddressInfoEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkBufferDeviceAddressInfoEXT
public VkBufferDeviceAddressInfoEXT(java.nio.ByteBuffer container)
Creates aVkBufferDeviceAddressInfoEXT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
buffer
public long buffer()
Returns the value of thebuffer
field.
-
sType
public VkBufferDeviceAddressInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkBufferDeviceAddressInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
buffer
public VkBufferDeviceAddressInfoEXT buffer(long value)
Sets the specified value to thebuffer
field.
-
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 newVkBufferDeviceAddressInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkBufferDeviceAddressInfoEXT calloc()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkBufferDeviceAddressInfoEXT create()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkBufferDeviceAddressInfoEXT create(long address)
Returns a newVkBufferDeviceAddressInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkBufferDeviceAddressInfoEXT createSafe(long address)
-
malloc
public static VkBufferDeviceAddressInfoEXT.Buffer malloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkBufferDeviceAddressInfoEXT.Buffer calloc(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBufferDeviceAddressInfoEXT.Buffer create(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBufferDeviceAddressInfoEXT.Buffer create(long address, int capacity)
Create aVkBufferDeviceAddressInfoEXT.Buffer
instance 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 newVkBufferDeviceAddressInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkBufferDeviceAddressInfoEXT callocStack()
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkBufferDeviceAddressInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkBufferDeviceAddressInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkBufferDeviceAddressInfoEXT.Buffer callocStack(int capacity)
Returns a newVkBufferDeviceAddressInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-