Package org.lwjgl.vulkan
Class VkDeviceOrHostAddressKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceOrHostAddressKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceOrHostAddressKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUnion specifying a device or host address.See Also
VkAccelerationStructureBuildGeometryInfoKHR,VkCopyAccelerationStructureToMemoryInfoKHRLayout
union VkDeviceOrHostAddressKHR { VkDeviceAddressdeviceAddress(); void *hostAddress(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceOrHostAddressKHR.BufferAn array ofVkDeviceOrHostAddressKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEADDRESS
HOSTADDRESSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkDeviceOrHostAddressKHR(java.nio.ByteBuffer container)Creates aVkDeviceOrHostAddressKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceOrHostAddressKHRcalloc()Returns a newVkDeviceOrHostAddressKHRinstance allocated withmemCalloc.static VkDeviceOrHostAddressKHR.Buffercalloc(int capacity)Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withmemCalloc.static VkDeviceOrHostAddressKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceOrHostAddressKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceOrHostAddressKHRcreate()Returns a newVkDeviceOrHostAddressKHRinstance allocated withBufferUtils.static VkDeviceOrHostAddressKHR.Buffercreate(int capacity)Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withBufferUtils.static VkDeviceOrHostAddressKHRcreate(long address)Returns a newVkDeviceOrHostAddressKHRinstance for the specified memory address.static VkDeviceOrHostAddressKHR.Buffercreate(long address, int capacity)Create aVkDeviceOrHostAddressKHR.Bufferinstance at the specified memory.static VkDeviceOrHostAddressKHRcreateSafe(long address)static VkDeviceOrHostAddressKHR.BuffercreateSafe(long address, int capacity)longdeviceAddress()a buffer device address as returned by theGetBufferDeviceAddressKHRcommand.VkDeviceOrHostAddressKHRdeviceAddress(long value)Sets the specified value to thedeviceAddress()field.longhostAddress()a host memory address.VkDeviceOrHostAddressKHRhostAddress(long value)Sets the specified value to thehostAddress()field.static VkDeviceOrHostAddressKHRmalloc()Returns a newVkDeviceOrHostAddressKHRinstance allocated withmemAlloc.static VkDeviceOrHostAddressKHR.Buffermalloc(int capacity)Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withmemAlloc.static VkDeviceOrHostAddressKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceOrHostAddressKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressKHRinstance allocated on the specifiedMemoryStack.static longndeviceAddress(long struct)Unsafe version ofdeviceAddress().static voidndeviceAddress(long struct, long value)Unsafe version ofdeviceAddress.static longnhostAddress(long struct)Unsafe version ofhostAddress().static voidnhostAddress(long struct, long value)Unsafe version ofhostAddress.VkDeviceOrHostAddressKHRset(VkDeviceOrHostAddressKHR src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkDeviceOrHostAddressKHR
public VkDeviceOrHostAddressKHR(java.nio.ByteBuffer container)
Creates aVkDeviceOrHostAddressKHRinstance 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
-
deviceAddress
public long deviceAddress()
a buffer device address as returned by theGetBufferDeviceAddressKHRcommand.
-
hostAddress
public long hostAddress()
a host memory address.
-
deviceAddress
public VkDeviceOrHostAddressKHR deviceAddress(long value)
Sets the specified value to thedeviceAddress()field.
-
hostAddress
public VkDeviceOrHostAddressKHR hostAddress(long value)
Sets the specified value to thehostAddress()field.
-
set
public VkDeviceOrHostAddressKHR set(VkDeviceOrHostAddressKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceOrHostAddressKHR malloc()
Returns a newVkDeviceOrHostAddressKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceOrHostAddressKHR calloc()
Returns a newVkDeviceOrHostAddressKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceOrHostAddressKHR create()
Returns a newVkDeviceOrHostAddressKHRinstance allocated withBufferUtils.
-
create
public static VkDeviceOrHostAddressKHR create(long address)
Returns a newVkDeviceOrHostAddressKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceOrHostAddressKHR createSafe(long address)
-
malloc
public static VkDeviceOrHostAddressKHR.Buffer malloc(int capacity)
Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceOrHostAddressKHR.Buffer calloc(int capacity)
Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceOrHostAddressKHR.Buffer create(int capacity)
Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceOrHostAddressKHR.Buffer create(long address, int capacity)
Create aVkDeviceOrHostAddressKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceOrHostAddressKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceOrHostAddressKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceOrHostAddressKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceOrHostAddressKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceOrHostAddressKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndeviceAddress
public static long ndeviceAddress(long struct)
Unsafe version ofdeviceAddress().
-
nhostAddress
public static long nhostAddress(long struct)
Unsafe version ofhostAddress().
-
ndeviceAddress
public static void ndeviceAddress(long struct, long value)Unsafe version ofdeviceAddress.
-
nhostAddress
public static void nhostAddress(long struct, long value)Unsafe version ofhostAddress.
-
-