Class VkDeviceAddressRangeKHR
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
- Direct Known Subclasses:
VkDeviceAddressRangeEXT
public class VkDeviceAddressRangeKHR
extends Struct<VkDeviceAddressRangeKHR>
implements NativeResource
struct VkDeviceAddressRangeKHR {
VkDeviceAddress address;
VkDeviceSize size;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDeviceAddressRangeKHR(ByteBuffer container) Creates aVkDeviceAddressRangeKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaddress$()address$(long value) Sets the specified value to theaddressfield.static VkDeviceAddressRangeKHRcalloc()Returns a newVkDeviceAddressRangeKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceAddressRangeKHRcalloc(MemoryStack stack) Returns a newVkDeviceAddressRangeKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceAddressRangeKHRcreate()Returns a newVkDeviceAddressRangeKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withBufferUtils.static VkDeviceAddressRangeKHRcreate(long address) Returns a newVkDeviceAddressRangeKHRinstance for the specified memory address.create(long address, int capacity) Create aVkDeviceAddressRangeKHR.Bufferinstance at the specified memory.static @Nullable VkDeviceAddressRangeKHRcreateSafe(long address) static @Nullable VkDeviceAddressRangeKHR.BuffercreateSafe(long address, int capacity) static VkDeviceAddressRangeKHRmalloc()Returns a newVkDeviceAddressRangeKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceAddressRangeKHRmalloc(MemoryStack stack) Returns a newVkDeviceAddressRangeKHRinstance allocated on the specifiedMemoryStack.static longnaddress$(long struct) Unsafe version ofaddress$().static voidnaddress$(long struct, long value) Unsafe version ofaddress$.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.set(long address$, long size) Initializes this struct with the specified values.Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ADDRESS
public static final int ADDRESSThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
VkDeviceAddressRangeKHR
Creates aVkDeviceAddressRangeKHRinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkDeviceAddressRangeKHR>
-
address$
- Returns:
- the value of the
addressfield.
-
size
- Returns:
- the value of the
sizefield.
-
address$
Sets the specified value to theaddressfield. -
size
Sets the specified value to thesizefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDeviceAddressRangeKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDeviceAddressRangeKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDeviceAddressRangeKHRinstance allocated withBufferUtils. -
create
Returns a newVkDeviceAddressRangeKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDeviceAddressRangeKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDeviceAddressRangeKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDeviceAddressRangeKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDeviceAddressRangeKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naddress$
public static long naddress$(long struct) Unsafe version ofaddress$(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
naddress$
public static void naddress$(long struct, long value) Unsafe version ofaddress$. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize.
-