Package org.lwjgl.vulkan
Class VkStridedDeviceAddressNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkStridedDeviceAddressNV
extends Struct<VkStridedDeviceAddressNV>
implements NativeResource
struct VkStridedDeviceAddressNV {
VkDeviceAddress startAddress;
VkDeviceSize strideInBytes;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkStridedDeviceAddressNV(ByteBuffer container) Creates aVkStridedDeviceAddressNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkStridedDeviceAddressNVcalloc()Returns a newVkStridedDeviceAddressNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkStridedDeviceAddressNVcalloc(MemoryStack stack) Returns a newVkStridedDeviceAddressNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkStridedDeviceAddressNVcreate()Returns a newVkStridedDeviceAddressNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withBufferUtils.static VkStridedDeviceAddressNVcreate(long address) Returns a newVkStridedDeviceAddressNVinstance for the specified memory address.create(long address, int capacity) Create aVkStridedDeviceAddressNV.Bufferinstance at the specified memory.static @Nullable VkStridedDeviceAddressNVcreateSafe(long address) static @Nullable VkStridedDeviceAddressNV.BuffercreateSafe(long address, int capacity) static VkStridedDeviceAddressNVmalloc()Returns a newVkStridedDeviceAddressNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated on the specifiedMemoryStack.static VkStridedDeviceAddressNVmalloc(MemoryStack stack) Returns a newVkStridedDeviceAddressNVinstance allocated on the specifiedMemoryStack.static longnstartAddress(long struct) Unsafe version ofstartAddress().static voidnstartAddress(long struct, long value) Unsafe version ofstartAddress.static longnstrideInBytes(long struct) Unsafe version ofstrideInBytes().static voidnstrideInBytes(long struct, long value) Unsafe version ofstrideInBytes.set(long startAddress, long strideInBytes) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longstartAddress(long value) Sets the specified value to thestartAddressfield.longstrideInBytes(long value) Sets the specified value to thestrideInBytesfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
STARTADDRESS
public static final int STARTADDRESSThe struct member offsets. -
STRIDEINBYTES
public static final int STRIDEINBYTESThe struct member offsets.
-
-
Constructor Details
-
VkStridedDeviceAddressNV
Creates aVkStridedDeviceAddressNVinstance 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<VkStridedDeviceAddressNV>
-
startAddress
public long startAddress()- Returns:
- the value of the
startAddressfield.
-
strideInBytes
public long strideInBytes()- Returns:
- the value of the
strideInBytesfield.
-
startAddress
Sets the specified value to thestartAddressfield. -
strideInBytes
Sets the specified value to thestrideInBytesfield. -
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 newVkStridedDeviceAddressNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkStridedDeviceAddressNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkStridedDeviceAddressNVinstance allocated withBufferUtils. -
create
Returns a newVkStridedDeviceAddressNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkStridedDeviceAddressNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkStridedDeviceAddressNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkStridedDeviceAddressNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkStridedDeviceAddressNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nstartAddress
public static long nstartAddress(long struct) Unsafe version ofstartAddress(). -
nstrideInBytes
public static long nstrideInBytes(long struct) Unsafe version ofstrideInBytes(). -
nstartAddress
public static void nstartAddress(long struct, long value) Unsafe version ofstartAddress. -
nstrideInBytes
public static void nstrideInBytes(long struct, long value) Unsafe version ofstrideInBytes.
-