Package org.lwjgl.vulkan
Class VkImageSubresource
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkImageSubresource {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t arrayLayer;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkImageSubresource
(ByteBuffer container) Creates aVkImageSubresource
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
arrayLayer
(int value) Sets the specified value to thearrayLayer
field.int
aspectMask
(int value) Sets the specified value to theaspectMask
field.static VkImageSubresource
calloc()
Returns a newVkImageSubresource
instance allocated withmemCalloc
.static VkImageSubresource.Buffer
calloc
(int capacity) Returns a newVkImageSubresource.Buffer
instance allocated withmemCalloc
.static VkImageSubresource.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkImageSubresource.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageSubresource
calloc
(MemoryStack stack) Returns a newVkImageSubresource
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageSubresource
Deprecated.static VkImageSubresource.Buffer
callocStack
(int capacity) Deprecated.static VkImageSubresource.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageSubresource
callocStack
(MemoryStack stack) Deprecated.static VkImageSubresource
create()
Returns a newVkImageSubresource
instance allocated withBufferUtils
.static VkImageSubresource.Buffer
create
(int capacity) Returns a newVkImageSubresource.Buffer
instance allocated withBufferUtils
.static VkImageSubresource
create
(long address) Returns a newVkImageSubresource
instance for the specified memory address.static VkImageSubresource.Buffer
create
(long address, int capacity) Create aVkImageSubresource.Buffer
instance at the specified memory.static @Nullable VkImageSubresource
createSafe
(long address) static @Nullable VkImageSubresource.Buffer
createSafe
(long address, int capacity) static VkImageSubresource
malloc()
Returns a newVkImageSubresource
instance allocated withmemAlloc
.static VkImageSubresource.Buffer
malloc
(int capacity) Returns a newVkImageSubresource.Buffer
instance allocated withmemAlloc
.static VkImageSubresource.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkImageSubresource.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageSubresource
malloc
(MemoryStack stack) Returns a newVkImageSubresource
instance allocated on the specifiedMemoryStack
.static VkImageSubresource
Deprecated.static VkImageSubresource.Buffer
mallocStack
(int capacity) Deprecated.static VkImageSubresource.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageSubresource
mallocStack
(MemoryStack stack) Deprecated.int
mipLevel()
mipLevel
(int value) Sets the specified value to themipLevel
field.static int
narrayLayer
(long struct) Unsafe version ofarrayLayer()
.static void
narrayLayer
(long struct, int value) Unsafe version ofarrayLayer
.static int
naspectMask
(long struct) Unsafe version ofaspectMask()
.static void
naspectMask
(long struct, int value) Unsafe version ofaspectMask
.static int
nmipLevel
(long struct) Unsafe version ofmipLevel()
.static void
nmipLevel
(long struct, int value) Unsafe version ofmipLevel
.set
(int aspectMask, int mipLevel, int arrayLayer) Initializes this struct with the specified values.set
(VkImageSubresource src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
ASPECTMASK
public static final int ASPECTMASKThe struct member offsets. -
MIPLEVEL
public static final int MIPLEVELThe struct member offsets. -
ARRAYLAYER
public static final int ARRAYLAYERThe struct member offsets.
-
-
Constructor Details
-
VkImageSubresource
Creates aVkImageSubresource
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<VkImageSubresource>
-
aspectMask
public int aspectMask()- Returns:
- the value of the
aspectMask
field.
-
mipLevel
public int mipLevel()- Returns:
- the value of the
mipLevel
field.
-
arrayLayer
public int arrayLayer()- Returns:
- the value of the
arrayLayer
field.
-
aspectMask
Sets the specified value to theaspectMask
field. -
mipLevel
Sets the specified value to themipLevel
field. -
arrayLayer
Sets the specified value to thearrayLayer
field. -
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 newVkImageSubresource
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkImageSubresource
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkImageSubresource
instance allocated withBufferUtils
. -
create
Returns a newVkImageSubresource
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageSubresource.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkImageSubresource.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkImageSubresource.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkImageSubresource.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkImageSubresource
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkImageSubresource
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkImageSubresource.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkImageSubresource.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
naspectMask
public static int naspectMask(long struct) Unsafe version ofaspectMask()
. -
nmipLevel
public static int nmipLevel(long struct) Unsafe version ofmipLevel()
. -
narrayLayer
public static int narrayLayer(long struct) Unsafe version ofarrayLayer()
. -
naspectMask
public static void naspectMask(long struct, int value) Unsafe version ofaspectMask
. -
nmipLevel
public static void nmipLevel(long struct, int value) Unsafe version ofmipLevel
. -
narrayLayer
public static void narrayLayer(long struct, int value) Unsafe version ofarrayLayer
.
-