Package org.lwjgl.vulkan
Class VkDeviceOrHostAddressConstKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceOrHostAddressConstKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceOrHostAddressConstKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUnion specifying a const device or host address.See Also
VkAccelerationStructureGeometryAabbsDataKHR,VkAccelerationStructureGeometryInstancesDataKHR,VkAccelerationStructureGeometryMotionTrianglesDataNV,VkAccelerationStructureGeometryTrianglesDataKHR,VkCopyMemoryToAccelerationStructureInfoKHRLayout
union VkDeviceOrHostAddressConstKHR { VkDeviceAddressdeviceAddress(); void const *hostAddress(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceOrHostAddressConstKHR.BufferAn array ofVkDeviceOrHostAddressConstKHRstructs.
-
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 VkDeviceOrHostAddressConstKHR(java.nio.ByteBuffer container)Creates aVkDeviceOrHostAddressConstKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceOrHostAddressConstKHRcalloc()Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withmemCalloc.static VkDeviceOrHostAddressConstKHR.Buffercalloc(int capacity)Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withmemCalloc.static VkDeviceOrHostAddressConstKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceOrHostAddressConstKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressConstKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceOrHostAddressConstKHRcreate()Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withBufferUtils.static VkDeviceOrHostAddressConstKHR.Buffercreate(int capacity)Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withBufferUtils.static VkDeviceOrHostAddressConstKHRcreate(long address)Returns a newVkDeviceOrHostAddressConstKHRinstance for the specified memory address.static VkDeviceOrHostAddressConstKHR.Buffercreate(long address, int capacity)Create aVkDeviceOrHostAddressConstKHR.Bufferinstance at the specified memory.static VkDeviceOrHostAddressConstKHRcreateSafe(long address)static VkDeviceOrHostAddressConstKHR.BuffercreateSafe(long address, int capacity)longdeviceAddress()a buffer device address as returned by theGetBufferDeviceAddressKHRcommand.VkDeviceOrHostAddressConstKHRdeviceAddress(long value)Sets the specified value to thedeviceAddress()field.longhostAddress()a const host memory address.VkDeviceOrHostAddressConstKHRhostAddress(long value)Sets the specified value to thehostAddress()field.static VkDeviceOrHostAddressConstKHRmalloc()Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withmemAlloc.static VkDeviceOrHostAddressConstKHR.Buffermalloc(int capacity)Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withmemAlloc.static VkDeviceOrHostAddressConstKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceOrHostAddressConstKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceOrHostAddressConstKHRinstance 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.VkDeviceOrHostAddressConstKHRset(VkDeviceOrHostAddressConstKHR src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkDeviceOrHostAddressConstKHR
public VkDeviceOrHostAddressConstKHR(java.nio.ByteBuffer container)
Creates aVkDeviceOrHostAddressConstKHRinstance 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 const host memory address.
-
deviceAddress
public VkDeviceOrHostAddressConstKHR deviceAddress(long value)
Sets the specified value to thedeviceAddress()field.
-
hostAddress
public VkDeviceOrHostAddressConstKHR hostAddress(long value)
Sets the specified value to thehostAddress()field.
-
set
public VkDeviceOrHostAddressConstKHR set(VkDeviceOrHostAddressConstKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceOrHostAddressConstKHR malloc()
Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceOrHostAddressConstKHR calloc()
Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceOrHostAddressConstKHR create()
Returns a newVkDeviceOrHostAddressConstKHRinstance allocated withBufferUtils.
-
create
public static VkDeviceOrHostAddressConstKHR create(long address)
Returns a newVkDeviceOrHostAddressConstKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceOrHostAddressConstKHR createSafe(long address)
-
malloc
public static VkDeviceOrHostAddressConstKHR.Buffer malloc(int capacity)
Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceOrHostAddressConstKHR.Buffer calloc(int capacity)
Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceOrHostAddressConstKHR.Buffer create(int capacity)
Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceOrHostAddressConstKHR.Buffer create(long address, int capacity)
Create aVkDeviceOrHostAddressConstKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceOrHostAddressConstKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceOrHostAddressConstKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressConstKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceOrHostAddressConstKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressConstKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceOrHostAddressConstKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressConstKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceOrHostAddressConstKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceOrHostAddressConstKHR.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.
-
-