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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aVkDecompressMemoryRegionNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDecompressMemoryRegionNV
calloc()
Returns a newVkDecompressMemoryRegionNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDecompressMemoryRegionNV
calloc
(MemoryStack stack) Returns a newVkDecompressMemoryRegionNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
compressedSize
(long value) Sets the specified value to thecompressedSize
field.static VkDecompressMemoryRegionNV
create()
Returns a newVkDecompressMemoryRegionNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withBufferUtils
.static VkDecompressMemoryRegionNV
create
(long address) Returns a newVkDecompressMemoryRegionNV
instance for the specified memory address.create
(long address, int capacity) Create aVkDecompressMemoryRegionNV.Buffer
instance at the specified memory.static @Nullable VkDecompressMemoryRegionNV
createSafe
(long address) static @Nullable VkDecompressMemoryRegionNV.Buffer
createSafe
(long address, int capacity) long
decompressedSize
(long value) Sets the specified value to thedecompressedSize
field.long
decompressionMethod
(long value) Sets the specified value to thedecompressionMethod
field.long
dstAddress
(long value) Sets the specified value to thedstAddress
field.static VkDecompressMemoryRegionNV
malloc()
Returns a newVkDecompressMemoryRegionNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkDecompressMemoryRegionNV
malloc
(MemoryStack stack) Returns a newVkDecompressMemoryRegionNV
instance allocated on the specifiedMemoryStack
.static long
ncompressedSize
(long struct) Unsafe version ofcompressedSize()
.static void
ncompressedSize
(long struct, long value) Unsafe version ofcompressedSize
.static long
ndecompressedSize
(long struct) Unsafe version ofdecompressedSize()
.static void
ndecompressedSize
(long struct, long value) Unsafe version ofdecompressedSize
.static long
ndecompressionMethod
(long struct) Unsafe version ofdecompressionMethod()
.static void
ndecompressionMethod
(long struct, long value) Unsafe version ofdecompressionMethod
.static long
ndstAddress
(long struct) Unsafe version ofdstAddress()
.static void
ndstAddress
(long struct, long value) Unsafe version ofdstAddress
.static long
nsrcAddress
(long struct) Unsafe version ofsrcAddress()
.static void
nsrcAddress
(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.int
sizeof()
Returnssizeof(struct)
.long
srcAddress
(long value) Sets the specified value to thesrcAddress
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkDecompressMemoryRegionNV
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDecompressMemoryRegionNV>
-
srcAddress
public long srcAddress()- Returns:
- the value of the
srcAddress
field.
-
dstAddress
public long dstAddress()- Returns:
- the value of the
dstAddress
field.
-
compressedSize
public long compressedSize()- Returns:
- the value of the
compressedSize
field.
-
decompressedSize
public long decompressedSize()- Returns:
- the value of the
decompressedSize
field.
-
decompressionMethod
public long decompressionMethod()- Returns:
- the value of the
decompressionMethod
field.
-
srcAddress
Sets the specified value to thesrcAddress
field. -
dstAddress
Sets the specified value to thedstAddress
field. -
compressedSize
Sets the specified value to thecompressedSize
field. -
decompressedSize
Sets the specified value to thedecompressedSize
field. -
decompressionMethod
Sets the specified value to thedecompressionMethod
field. -
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 newVkDecompressMemoryRegionNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDecompressMemoryRegionNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDecompressMemoryRegionNV
instance allocated withBufferUtils
. -
create
Returns a newVkDecompressMemoryRegionNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDecompressMemoryRegionNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDecompressMemoryRegionNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDecompressMemoryRegionNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDecompressMemoryRegionNV.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-