Package org.lwjgl.vulkan
Class VkBufferDeviceAddressCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferDeviceAddressCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferDeviceAddressCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRequest a specific address for a buffer.Description
If
deviceAddressis zero, no specific address is requested.If
deviceAddressis not zero, then it must be an address retrieved from an identically created buffer on the same implementation. The buffer must also be bound to an identically createdVkDeviceMemoryobject.If this structure is not present, it is as if
deviceAddressis zero.Apps should avoid creating buffers with app-provided addresses and implementation-provided addresses in the same process, to reduce the likelihood of
ERROR_INVALID_DEVICE_ADDRESS_EXTerrors.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT
Layout
struct VkBufferDeviceAddressCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkDeviceAddressdeviceAddress(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferDeviceAddressCreateInfoEXT.BufferAn array ofVkBufferDeviceAddressCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEADDRESS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBufferDeviceAddressCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkBufferDeviceAddressCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkBufferDeviceAddressCreateInfoEXTcalloc()Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withmemCalloc.static VkBufferDeviceAddressCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkBufferDeviceAddressCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferDeviceAddressCreateInfoEXTcallocStack()Deprecated.static VkBufferDeviceAddressCreateInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkBufferDeviceAddressCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferDeviceAddressCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferDeviceAddressCreateInfoEXTcreate()Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withBufferUtils.static VkBufferDeviceAddressCreateInfoEXT.Buffercreate(int capacity)Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkBufferDeviceAddressCreateInfoEXTcreate(long address)Returns a newVkBufferDeviceAddressCreateInfoEXTinstance for the specified memory address.static VkBufferDeviceAddressCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkBufferDeviceAddressCreateInfoEXT.Bufferinstance at the specified memory.static VkBufferDeviceAddressCreateInfoEXTcreateSafe(long address)static VkBufferDeviceAddressCreateInfoEXT.BuffercreateSafe(long address, int capacity)longdeviceAddress()the device address requested for the buffer.VkBufferDeviceAddressCreateInfoEXTdeviceAddress(long value)Sets the specified value to thedeviceAddress()field.static VkBufferDeviceAddressCreateInfoEXTmalloc()Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withmemAlloc.static VkBufferDeviceAddressCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkBufferDeviceAddressCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferDeviceAddressCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkBufferDeviceAddressCreateInfoEXTmallocStack()Deprecated.static VkBufferDeviceAddressCreateInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkBufferDeviceAddressCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferDeviceAddressCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longndeviceAddress(long struct)Unsafe version ofdeviceAddress().static voidndeviceAddress(long struct, long value)Unsafe version ofdeviceAddress.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.VkBufferDeviceAddressCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkBufferDeviceAddressCreateInfoEXTset(int sType, long pNext, long deviceAddress)Initializes this struct with the specified values.VkBufferDeviceAddressCreateInfoEXTset(VkBufferDeviceAddressCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkBufferDeviceAddressCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkBufferDeviceAddressCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkBufferDeviceAddressCreateInfoEXT
public VkBufferDeviceAddressCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkBufferDeviceAddressCreateInfoEXTinstance 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.
-
deviceAddress
public long deviceAddress()
the device address requested for the buffer.
-
sType
public VkBufferDeviceAddressCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBufferDeviceAddressCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkBufferDeviceAddressCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
deviceAddress
public VkBufferDeviceAddressCreateInfoEXT deviceAddress(long value)
Sets the specified value to thedeviceAddress()field.
-
set
public VkBufferDeviceAddressCreateInfoEXT set(int sType, long pNext, long deviceAddress)
Initializes this struct with the specified values.
-
set
public VkBufferDeviceAddressCreateInfoEXT set(VkBufferDeviceAddressCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferDeviceAddressCreateInfoEXT malloc()
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferDeviceAddressCreateInfoEXT calloc()
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferDeviceAddressCreateInfoEXT create()
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkBufferDeviceAddressCreateInfoEXT create(long address)
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferDeviceAddressCreateInfoEXT createSafe(long address)
-
malloc
public static VkBufferDeviceAddressCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferDeviceAddressCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressCreateInfoEXT.Buffer create(int capacity)
Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferDeviceAddressCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkBufferDeviceAddressCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferDeviceAddressCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferDeviceAddressCreateInfoEXT.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 VkBufferDeviceAddressCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkBufferDeviceAddressCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferDeviceAddressCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferDeviceAddressCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferDeviceAddressCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferDeviceAddressCreateInfoEXT.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().
-
ndeviceAddress
public static long ndeviceAddress(long struct)
Unsafe version ofdeviceAddress().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndeviceAddress
public static void ndeviceAddress(long struct, long value)Unsafe version ofdeviceAddress.
-
-