Package org.lwjgl.vulkan
Class VkDecompressMemoryRegionNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkDecompressMemoryRegionNV
extends Struct<VkDecompressMemoryRegionNV>
implements NativeResource
struct VkDecompressMemoryRegionNV {
VkDeviceAddress srcAddress;
VkDeviceAddress dstAddress;
VkDeviceSize compressedSize;
VkDeviceSize decompressedSize;
VkMemoryDecompressionMethodFlagsNV decompressionMethod;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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
ConstructorsConstructorDescriptionVkDecompressMemoryRegionNV(ByteBuffer container) Creates aVkDecompressMemoryRegionNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDecompressMemoryRegionNVcalloc()Returns a newVkDecompressMemoryRegionNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDecompressMemoryRegionNVcalloc(MemoryStack stack) Returns a newVkDecompressMemoryRegionNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcompressedSize(long value) Sets the specified value to thecompressedSizefield.static VkDecompressMemoryRegionNVcreate()Returns a newVkDecompressMemoryRegionNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withBufferUtils.static VkDecompressMemoryRegionNVcreate(long address) Returns a newVkDecompressMemoryRegionNVinstance for the specified memory address.create(long address, int capacity) Create aVkDecompressMemoryRegionNV.Bufferinstance at the specified memory.static @Nullable VkDecompressMemoryRegionNVcreateSafe(long address) static @Nullable VkDecompressMemoryRegionNV.BuffercreateSafe(long address, int capacity) longdecompressedSize(long value) Sets the specified value to thedecompressedSizefield.longdecompressionMethod(long value) Sets the specified value to thedecompressionMethodfield.longdstAddress(long value) Sets the specified value to thedstAddressfield.static VkDecompressMemoryRegionNVmalloc()Returns a newVkDecompressMemoryRegionNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated on the specifiedMemoryStack.static VkDecompressMemoryRegionNVmalloc(MemoryStack stack) Returns a newVkDecompressMemoryRegionNVinstance allocated on the specifiedMemoryStack.static longncompressedSize(long struct) Unsafe version ofcompressedSize().static voidncompressedSize(long struct, long value) Unsafe version ofcompressedSize.static longndecompressedSize(long struct) Unsafe version ofdecompressedSize().static voidndecompressedSize(long struct, long value) Unsafe version ofdecompressedSize.static longndecompressionMethod(long struct) Unsafe version ofdecompressionMethod().static voidndecompressionMethod(long struct, long value) Unsafe version ofdecompressionMethod.static longndstAddress(long struct) Unsafe version ofdstAddress().static voidndstAddress(long struct, long value) Unsafe version ofdstAddress.static longnsrcAddress(long struct) Unsafe version ofsrcAddress().static voidnsrcAddress(long struct, long value) Unsafe version ofsrcAddress.set(long srcAddress, long dstAddress, long compressedSize, long decompressedSize, long decompressionMethod) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longsrcAddress(long value) Sets the specified value to thesrcAddressfield.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. -
SRCADDRESS
public static final int SRCADDRESSThe struct member offsets. -
DSTADDRESS
public static final int DSTADDRESSThe struct member offsets. -
COMPRESSEDSIZE
public static final int COMPRESSEDSIZEThe struct member offsets. -
DECOMPRESSEDSIZE
public static final int DECOMPRESSEDSIZEThe struct member offsets. -
DECOMPRESSIONMETHOD
public static final int DECOMPRESSIONMETHODThe struct member offsets.
-
-
Constructor Details
-
VkDecompressMemoryRegionNV
Creates aVkDecompressMemoryRegionNVinstance 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<VkDecompressMemoryRegionNV>
-
srcAddress
public long srcAddress()- Returns:
- the value of the
srcAddressfield.
-
dstAddress
public long dstAddress()- Returns:
- the value of the
dstAddressfield.
-
compressedSize
public long compressedSize()- Returns:
- the value of the
compressedSizefield.
-
decompressedSize
public long decompressedSize()- Returns:
- the value of the
decompressedSizefield.
-
decompressionMethod
public long decompressionMethod()- Returns:
- the value of the
decompressionMethodfield.
-
srcAddress
Sets the specified value to thesrcAddressfield. -
dstAddress
Sets the specified value to thedstAddressfield. -
compressedSize
Sets the specified value to thecompressedSizefield. -
decompressedSize
Sets the specified value to thedecompressedSizefield. -
decompressionMethod
Sets the specified value to thedecompressionMethodfield. -
set
public VkDecompressMemoryRegionNV set(long srcAddress, long dstAddress, long compressedSize, long decompressedSize, long decompressionMethod) 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 newVkDecompressMemoryRegionNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDecompressMemoryRegionNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDecompressMemoryRegionNVinstance allocated withBufferUtils. -
create
Returns a newVkDecompressMemoryRegionNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDecompressMemoryRegionNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDecompressMemoryRegionNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDecompressMemoryRegionNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDecompressMemoryRegionNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrcAddress
public static long nsrcAddress(long struct) Unsafe version ofsrcAddress(). -
ndstAddress
public static long ndstAddress(long struct) Unsafe version ofdstAddress(). -
ncompressedSize
public static long ncompressedSize(long struct) Unsafe version ofcompressedSize(). -
ndecompressedSize
public static long ndecompressedSize(long struct) Unsafe version ofdecompressedSize(). -
ndecompressionMethod
public static long ndecompressionMethod(long struct) Unsafe version ofdecompressionMethod(). -
nsrcAddress
public static void nsrcAddress(long struct, long value) Unsafe version ofsrcAddress. -
ndstAddress
public static void ndstAddress(long struct, long value) Unsafe version ofdstAddress. -
ncompressedSize
public static void ncompressedSize(long struct, long value) Unsafe version ofcompressedSize. -
ndecompressedSize
public static void ndecompressedSize(long struct, long value) Unsafe version ofdecompressedSize. -
ndecompressionMethod
public static void ndecompressionMethod(long struct, long value) Unsafe version ofdecompressionMethod.
-