public class VkImageSubresource
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
aspectMask must be a valid combination of VkImageAspectFlagBits valuesaspectMask must not be 0VkSparseImageMemoryBind, GetImageSubresourceLayout
aspectMask – a VkImageAspectFlags selecting the image aspect.mipLevel – selects the mipmap level.arrayLayer – selects the array layer.
struct VkImageSubresource {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t arrayLayer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageSubresource.Buffer
An array of
VkImageSubresource structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ARRAYLAYER
The struct member offsets.
|
static int |
ASPECTMASK
The struct member offsets.
|
static int |
MIPLEVEL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkImageSubresource(java.nio.ByteBuffer container)
Creates a
VkImageSubresource instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
arrayLayer()
Returns the value of the
arrayLayer field. |
VkImageSubresource |
arrayLayer(int value)
Sets the specified value to the
arrayLayer field. |
int |
aspectMask()
Returns the value of the
aspectMask field. |
VkImageSubresource |
aspectMask(int value)
Sets the specified value to the
aspectMask field. |
static VkImageSubresource |
calloc()
Returns a new
VkImageSubresource instance allocated with memCalloc. |
static VkImageSubresource.Buffer |
calloc(int capacity)
Returns a new
VkImageSubresource.Buffer instance allocated with memCalloc. |
static VkImageSubresource |
callocStack()
Returns a new
VkImageSubresource instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSubresource.Buffer |
callocStack(int capacity)
Returns a new
VkImageSubresource.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSubresource.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresource.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSubresource |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresource instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSubresource |
create()
Returns a new
VkImageSubresource instance allocated with BufferUtils. |
static VkImageSubresource.Buffer |
create(int capacity)
Returns a new
VkImageSubresource.Buffer instance allocated with BufferUtils. |
static VkImageSubresource |
create(long address)
Returns a new
VkImageSubresource instance for the specified memory address. |
static VkImageSubresource.Buffer |
create(long address,
int capacity)
Create a
VkImageSubresource.Buffer instance at the specified memory. |
static VkImageSubresource |
createSafe(long address)
|
static VkImageSubresource.Buffer |
createSafe(long address,
int capacity)
|
static VkImageSubresource |
malloc()
Returns a new
VkImageSubresource instance allocated with memAlloc. |
static VkImageSubresource.Buffer |
malloc(int capacity)
Returns a new
VkImageSubresource.Buffer instance allocated with memAlloc. |
static VkImageSubresource |
mallocStack()
Returns a new
VkImageSubresource instance allocated on the thread-local MemoryStack. |
static VkImageSubresource.Buffer |
mallocStack(int capacity)
Returns a new
VkImageSubresource.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageSubresource.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresource.Buffer instance allocated on the specified MemoryStack. |
static VkImageSubresource |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresource instance allocated on the specified MemoryStack. |
int |
mipLevel()
Returns the value of the
mipLevel field. |
VkImageSubresource |
mipLevel(int value)
Sets the specified value to the
mipLevel field. |
static int |
narrayLayer(long struct)
Unsafe version of
arrayLayer(). |
static void |
narrayLayer(long struct,
int value)
Unsafe version of
arrayLayer. |
static int |
naspectMask(long struct)
Unsafe version of
aspectMask(). |
static void |
naspectMask(long struct,
int value)
Unsafe version of
aspectMask. |
static int |
nmipLevel(long struct)
Unsafe version of
mipLevel(). |
static void |
nmipLevel(long struct,
int value)
Unsafe version of
mipLevel. |
VkImageSubresource |
set(int aspectMask,
int mipLevel,
int arrayLayer)
Initializes this struct with the specified values.
|
VkImageSubresource |
set(VkImageSubresource src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ASPECTMASK
public static final int MIPLEVEL
public static final int ARRAYLAYER
public VkImageSubresource(java.nio.ByteBuffer container)
VkImageSubresource 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int aspectMask()
aspectMask field.public int mipLevel()
mipLevel field.public int arrayLayer()
arrayLayer field.public VkImageSubresource aspectMask(int value)
aspectMask field.public VkImageSubresource mipLevel(int value)
mipLevel field.public VkImageSubresource arrayLayer(int value)
arrayLayer field.public VkImageSubresource set(int aspectMask, int mipLevel, int arrayLayer)
public VkImageSubresource set(VkImageSubresource src)
src - the source structpublic static VkImageSubresource malloc()
VkImageSubresource instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageSubresource calloc()
VkImageSubresource instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageSubresource create()
VkImageSubresource instance allocated with BufferUtils.public static VkImageSubresource create(long address)
VkImageSubresource instance for the specified memory address.@Nullable public static VkImageSubresource createSafe(long address)
public static VkImageSubresource.Buffer malloc(int capacity)
VkImageSubresource.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSubresource.Buffer calloc(int capacity)
VkImageSubresource.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSubresource.Buffer create(int capacity)
VkImageSubresource.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageSubresource.Buffer create(long address, int capacity)
VkImageSubresource.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageSubresource.Buffer createSafe(long address, int capacity)
public static VkImageSubresource mallocStack()
VkImageSubresource instance allocated on the thread-local MemoryStack.public static VkImageSubresource callocStack()
VkImageSubresource instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageSubresource mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageSubresource instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageSubresource callocStack(org.lwjgl.system.MemoryStack stack)
VkImageSubresource instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageSubresource.Buffer mallocStack(int capacity)
VkImageSubresource.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageSubresource.Buffer callocStack(int capacity)
VkImageSubresource.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageSubresource.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSubresource.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageSubresource.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSubresource.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int naspectMask(long struct)
aspectMask().public static int nmipLevel(long struct)
mipLevel().public static int narrayLayer(long struct)
arrayLayer().public static void naspectMask(long struct,
int value)
aspectMask.public static void nmipLevel(long struct,
int value)
mipLevel.public static void narrayLayer(long struct,
int value)
arrayLayer.Copyright LWJGL. All Rights Reserved. License terms.