Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkDecompressMemoryRegionNV

extends Struct<VkDecompressMemoryRegionNV>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying decompression parameters.
Valid Usage
Valid Usage (Implicit)
See Also

CmdDecompressMemoryNV

Layout


struct VkDecompressMemoryRegionNV {
    VkDeviceAddress srcAddress;
    VkDeviceAddress dstAddress;
    VkDeviceSize compressedSize;
    VkDeviceSize decompressedSize;
    VkMemoryDecompressionMethodFlagsNV decompressionMethod;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COMPRESSEDSIZE

The struct member offsets.

public static final int
DECOMPRESSEDSIZE

The struct member offsets.

public static final int
DECOMPRESSIONMETHOD

The struct member offsets.

public static final int
DSTADDRESS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCADDRESS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkDecompressMemoryRegionNV(long address, ByteBuffer container)

public
VkDecompressMemoryRegionNV(ByteBuffer container)

Creates a VkDecompressMemoryRegionNV instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkDecompressMemoryRegionNV
calloc()

Returns a new VkDecompressMemoryRegionNV instance allocated with memCalloc.

public static VkDecompressMemoryRegionNV.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with memCalloc.

public static VkDecompressMemoryRegionNV
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkDecompressMemoryRegionNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkDecompressMemoryRegionNV.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public long
compressedSize()

the size of compressed data in bytes.

public VkDecompressMemoryRegionNV
compressedSize(long value)

Sets the specified value to the compressedSize field.

protected VkDecompressMemoryRegionNV
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkDecompressMemoryRegionNV
create()

Returns a new VkDecompressMemoryRegionNV instance allocated with BufferUtils.

public static VkDecompressMemoryRegionNV
create(long address)

Returns a new VkDecompressMemoryRegionNV instance for the specified memory address.

public static VkDecompressMemoryRegionNV.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with BufferUtils.

public static VkDecompressMemoryRegionNV.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkDecompressMemoryRegionNV.Buffer instance at the specified memory.

public static VkDecompressMemoryRegionNV
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkDecompressMemoryRegionNV.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
decompressedSize()

the size of decompressed data in bytes.

public VkDecompressMemoryRegionNV
decompressedSize(long value)

Sets the specified value to the decompressedSize field.

public long
decompressionMethod()

a bitmask of VkMemoryDecompressionMethodFlagBitsNV with a single bit set specifying the method used to decompress data.

public VkDecompressMemoryRegionNV
decompressionMethod(long value)

Sets the specified value to the decompressionMethod field.

public long
dstAddress()

the destination address where decompressed data will be written.

public VkDecompressMemoryRegionNV
dstAddress(long value)

Sets the specified value to the dstAddress field.

public static VkDecompressMemoryRegionNV
malloc()

Returns a new VkDecompressMemoryRegionNV instance allocated with memAlloc.

public static VkDecompressMemoryRegionNV.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with memAlloc.

public static VkDecompressMemoryRegionNV
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkDecompressMemoryRegionNV instance allocated on the specified MemoryStack.

public static VkDecompressMemoryRegionNV.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated on the specified MemoryStack.

public static long
ncompressedSize(long struct)

Unsafe version of compressedSize.

public static void
ncompressedSize(long struct, long value)

Unsafe version of compressedSize.

public static long
ndecompressedSize(long struct)

Unsafe version of decompressedSize.

public static void
ndecompressedSize(long struct, long value)

Unsafe version of decompressedSize.

public static long
ndecompressionMethod(long struct)

Unsafe version of decompressionMethod.

public static void
ndecompressionMethod(long struct, long value)

Unsafe version of decompressionMethod.

public static long
ndstAddress(long struct)

Unsafe version of dstAddress.

public static void
ndstAddress(long struct, long value)

Unsafe version of dstAddress.

public static long
nsrcAddress(long struct)

Unsafe version of srcAddress.

public static void
nsrcAddress(long struct, long value)

Unsafe version of srcAddress.

public VkDecompressMemoryRegionNV
set(long srcAddress, long dstAddress, long compressedSize, long decompressedSize, long decompressionMethod)

Initializes this struct with the specified values.

public VkDecompressMemoryRegionNV

Returns:

this struct
set
(VkDecompressMemoryRegionNV
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
srcAddress()

the address where compressed data is stored.

public VkDecompressMemoryRegionNV
srcAddress(long value)

Sets the specified value to the srcAddress field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COMPRESSEDSIZEback to summary
public static final int COMPRESSEDSIZE

The struct member offsets.

DECOMPRESSEDSIZEback to summary
public static final int DECOMPRESSEDSIZE

The struct member offsets.

DECOMPRESSIONMETHODback to summary
public static final int DECOMPRESSIONMETHOD

The struct member offsets.

DSTADDRESSback to summary
public static final int DSTADDRESS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SRCADDRESSback to summary
public static final int SRCADDRESS

The struct member offsets.

Constructor Detail

VkDecompressMemoryRegionNVback to summary
protected VkDecompressMemoryRegionNV(long address, ByteBuffer container)
VkDecompressMemoryRegionNVback to summary
public VkDecompressMemoryRegionNV(ByteBuffer container)

Creates a VkDecompressMemoryRegionNV instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static VkDecompressMemoryRegionNV calloc()

Returns a new VkDecompressMemoryRegionNV instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkDecompressMemoryRegionNV.Buffer calloc(int capacity)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkDecompressMemoryRegionNV calloc(MemoryStack stack)

Returns a new VkDecompressMemoryRegionNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkDecompressMemoryRegionNV.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

compressedSizeback to summary
public long compressedSize()

the size of compressed data in bytes.

Annotations
@NativeType:VkDeviceSize
compressedSizeback to summary
public VkDecompressMemoryRegionNV compressedSize(long value)

Sets the specified value to the compressedSize field.

createback to summary
protected VkDecompressMemoryRegionNV create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkDecompressMemoryRegionNV create()

Returns a new VkDecompressMemoryRegionNV instance allocated with BufferUtils.

createback to summary
public static VkDecompressMemoryRegionNV create(long address)

Returns a new VkDecompressMemoryRegionNV instance for the specified memory address.

createback to summary
public static VkDecompressMemoryRegionNV.Buffer create(int capacity)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkDecompressMemoryRegionNV.Buffer create(long address, int capacity)

Create a VkDecompressMemoryRegionNV.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkDecompressMemoryRegionNV createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkDecompressMemoryRegionNV.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
decompressedSizeback to summary
public long decompressedSize()

the size of decompressed data in bytes.

Annotations
@NativeType:VkDeviceSize
decompressedSizeback to summary
public VkDecompressMemoryRegionNV decompressedSize(long value)

Sets the specified value to the decompressedSize field.

decompressionMethodback to summary
public long decompressionMethod()

a bitmask of VkMemoryDecompressionMethodFlagBitsNV with a single bit set specifying the method used to decompress data.

Annotations
@NativeType:VkMemoryDecompressionMethodFlagsNV
decompressionMethodback to summary
public VkDecompressMemoryRegionNV decompressionMethod(long value)

Sets the specified value to the decompressionMethod field.

dstAddressback to summary
public long dstAddress()

the destination address where decompressed data will be written.

Annotations
@NativeType:VkDeviceAddress
dstAddressback to summary
public VkDecompressMemoryRegionNV dstAddress(long value)

Sets the specified value to the dstAddress field.

mallocback to summary
public static VkDecompressMemoryRegionNV malloc()

Returns a new VkDecompressMemoryRegionNV instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkDecompressMemoryRegionNV.Buffer malloc(int capacity)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkDecompressMemoryRegionNV malloc(MemoryStack stack)

Returns a new VkDecompressMemoryRegionNV instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkDecompressMemoryRegionNV.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkDecompressMemoryRegionNV.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ncompressedSizeback to summary
public static long ncompressedSize(long struct)

Unsafe version of compressedSize.

ncompressedSizeback to summary
public static void ncompressedSize(long struct, long value)

Unsafe version of compressedSize.

ndecompressedSizeback to summary
public static long ndecompressedSize(long struct)

Unsafe version of decompressedSize.

ndecompressedSizeback to summary
public static void ndecompressedSize(long struct, long value)

Unsafe version of decompressedSize.

ndecompressionMethodback to summary
public static long ndecompressionMethod(long struct)

Unsafe version of decompressionMethod.

ndecompressionMethodback to summary
public static void ndecompressionMethod(long struct, long value)

Unsafe version of decompressionMethod.

ndstAddressback to summary
public static long ndstAddress(long struct)

Unsafe version of dstAddress.

ndstAddressback to summary
public static void ndstAddress(long struct, long value)

Unsafe version of dstAddress.

nsrcAddressback to summary
public static long nsrcAddress(long struct)

Unsafe version of srcAddress.

nsrcAddressback to summary
public static void nsrcAddress(long struct, long value)

Unsafe version of srcAddress.

setback to summary
public VkDecompressMemoryRegionNV set(long srcAddress, long dstAddress, long compressedSize, long decompressedSize, long decompressionMethod)

Initializes this struct with the specified values.

setback to summary
public VkDecompressMemoryRegionNV set(VkDecompressMemoryRegionNV src)

Copies the specified struct data to this struct.

Parameters
src:VkDecompressMemoryRegionNV

the source struct

Returns:VkDecompressMemoryRegionNV

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
srcAddressback to summary
public long srcAddress()

the address where compressed data is stored.

Annotations
@NativeType:VkDeviceAddress
srcAddressback to summary
public VkDecompressMemoryRegionNV srcAddress(long value)

Sets the specified value to the srcAddress field.

org.lwjgl.vulkan back to summary

public Class VkDecompressMemoryRegionNV.Buffer

extends StructBuffer<VkDecompressMemoryRegionNV, VkDecompressMemoryRegionNV.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkDecompressMemoryRegionNV structs.

Field Summary

Modifier and TypeField and Description
private static final VkDecompressMemoryRegionNV

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkDecompressMemoryRegionNV.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public long
public VkDecompressMemoryRegionNV.Buffer
compressedSize(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#compressedSize field.

public long
public VkDecompressMemoryRegionNV.Buffer
decompressedSize(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#decompressedSize field.

public long
public VkDecompressMemoryRegionNV.Buffer
decompressionMethod(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#decompressionMethod field.

public long

Returns:

the value of the VkDecompressMemoryRegionNV#dstAddress field.
dstAddress
()

public VkDecompressMemoryRegionNV.Buffer
dstAddress(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#dstAddress field.

protected VkDecompressMemoryRegionNV
protected VkDecompressMemoryRegionNV.Buffer
public long

Returns:

the value of the VkDecompressMemoryRegionNV#srcAddress field.
srcAddress
()

public VkDecompressMemoryRegionNV.Buffer
srcAddress(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#srcAddress field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkDecompressMemoryRegionNV ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkDecompressMemoryRegionNV.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkDecompressMemoryRegionNV#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

compressedSizeback to summary
public long compressedSize()
Returns:long

the value of the VkDecompressMemoryRegionNV#compressedSize field.

Annotations
@NativeType:VkDeviceSize
compressedSizeback to summary
public VkDecompressMemoryRegionNV.Buffer compressedSize(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#compressedSize field.

decompressedSizeback to summary
public long decompressedSize()
Returns:long

the value of the VkDecompressMemoryRegionNV#decompressedSize field.

Annotations
@NativeType:VkDeviceSize
decompressedSizeback to summary
public VkDecompressMemoryRegionNV.Buffer decompressedSize(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#decompressedSize field.

decompressionMethodback to summary
public long decompressionMethod()
Returns:long

the value of the VkDecompressMemoryRegionNV#decompressionMethod field.

Annotations
@NativeType:VkMemoryDecompressionMethodFlagsNV
decompressionMethodback to summary
public VkDecompressMemoryRegionNV.Buffer decompressionMethod(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#decompressionMethod field.

dstAddressback to summary
public long dstAddress()
Returns:long

the value of the VkDecompressMemoryRegionNV#dstAddress field.

Annotations
@NativeType:VkDeviceAddress
dstAddressback to summary
public VkDecompressMemoryRegionNV.Buffer dstAddress(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#dstAddress field.

getElementFactoryback to summary
protected VkDecompressMemoryRegionNV getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
selfback to summary
protected VkDecompressMemoryRegionNV.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
srcAddressback to summary
public long srcAddress()
Returns:long

the value of the VkDecompressMemoryRegionNV#srcAddress field.

Annotations
@NativeType:VkDeviceAddress
srcAddressback to summary
public VkDecompressMemoryRegionNV.Buffer srcAddress(long value)

Sets the specified value to the VkDecompressMemoryRegionNV#srcAddress field.