public class VkImageSubresourceLayers
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
aspectMask contains IMAGE_ASPECT_COLOR_BIT, it must not contain either of IMAGE_ASPECT_DEPTH_BIT or IMAGE_ASPECT_STENCIL_BITaspectMask must not contain IMAGE_ASPECT_METADATA_BITaspectMask must not include VK_IMAGE_ASPECT_MEMORY_PLANE_i_BIT_EXT for any index i.layerCount must be greater than 0aspectMask must be a valid combination of VkImageAspectFlagBits valuesaspectMask must not be 0VkBufferImageCopy, VkImageBlit, VkImageCopy, VkImageResolve
aspectMask – a combination of VkImageAspectFlagBits, selecting the color, depth and/or stencil aspects to be copied.mipLevel – the mipmap level to copy from.baseArrayLayer – baseArrayLayer and layerCount are the starting layer and number of layers to copy.layerCount – see baseArrayLayer
struct VkImageSubresourceLayers {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t baseArrayLayer;
uint32_t layerCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageSubresourceLayers.Buffer
An array of
VkImageSubresourceLayers structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ASPECTMASK
The struct member offsets.
|
static int |
BASEARRAYLAYER
The struct member offsets.
|
static int |
LAYERCOUNT
The struct member offsets.
|
static int |
MIPLEVEL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkImageSubresourceLayers(java.nio.ByteBuffer container)
Creates a
VkImageSubresourceLayers instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
aspectMask()
Returns the value of the
aspectMask field. |
VkImageSubresourceLayers |
aspectMask(int value)
Sets the specified value to the
aspectMask field. |
int |
baseArrayLayer()
Returns the value of the
baseArrayLayer field. |
VkImageSubresourceLayers |
baseArrayLayer(int value)
Sets the specified value to the
baseArrayLayer field. |
static VkImageSubresourceLayers |
calloc()
Returns a new
VkImageSubresourceLayers instance allocated with memCalloc. |
static VkImageSubresourceLayers.Buffer |
calloc(int capacity)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated with memCalloc. |
static VkImageSubresourceLayers |
callocStack()
Returns a new
VkImageSubresourceLayers instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSubresourceLayers.Buffer |
callocStack(int capacity)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSubresourceLayers.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSubresourceLayers |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresourceLayers instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSubresourceLayers |
create()
Returns a new
VkImageSubresourceLayers instance allocated with BufferUtils. |
static VkImageSubresourceLayers.Buffer |
create(int capacity)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated with BufferUtils. |
static VkImageSubresourceLayers |
create(long address)
Returns a new
VkImageSubresourceLayers instance for the specified memory address. |
static VkImageSubresourceLayers.Buffer |
create(long address,
int capacity)
Create a
VkImageSubresourceLayers.Buffer instance at the specified memory. |
static VkImageSubresourceLayers |
createSafe(long address)
|
static VkImageSubresourceLayers.Buffer |
createSafe(long address,
int capacity)
|
int |
layerCount()
Returns the value of the
layerCount field. |
VkImageSubresourceLayers |
layerCount(int value)
Sets the specified value to the
layerCount field. |
static VkImageSubresourceLayers |
malloc()
Returns a new
VkImageSubresourceLayers instance allocated with memAlloc. |
static VkImageSubresourceLayers.Buffer |
malloc(int capacity)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated with memAlloc. |
static VkImageSubresourceLayers |
mallocStack()
Returns a new
VkImageSubresourceLayers instance allocated on the thread-local MemoryStack. |
static VkImageSubresourceLayers.Buffer |
mallocStack(int capacity)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageSubresourceLayers.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresourceLayers.Buffer instance allocated on the specified MemoryStack. |
static VkImageSubresourceLayers |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSubresourceLayers instance allocated on the specified MemoryStack. |
int |
mipLevel()
Returns the value of the
mipLevel field. |
VkImageSubresourceLayers |
mipLevel(int value)
Sets the specified value to the
mipLevel field. |
static int |
naspectMask(long struct)
Unsafe version of
aspectMask(). |
static void |
naspectMask(long struct,
int value)
Unsafe version of
aspectMask. |
static int |
nbaseArrayLayer(long struct)
Unsafe version of
baseArrayLayer(). |
static void |
nbaseArrayLayer(long struct,
int value)
Unsafe version of
baseArrayLayer. |
static int |
nlayerCount(long struct)
Unsafe version of
layerCount(). |
static void |
nlayerCount(long struct,
int value)
Unsafe version of
layerCount. |
static int |
nmipLevel(long struct)
Unsafe version of
mipLevel(). |
static void |
nmipLevel(long struct,
int value)
Unsafe version of
mipLevel. |
VkImageSubresourceLayers |
set(int aspectMask,
int mipLevel,
int baseArrayLayer,
int layerCount)
Initializes this struct with the specified values.
|
VkImageSubresourceLayers |
set(VkImageSubresourceLayers 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 BASEARRAYLAYER
public static final int LAYERCOUNT
public VkImageSubresourceLayers(java.nio.ByteBuffer container)
VkImageSubresourceLayers 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 baseArrayLayer()
baseArrayLayer field.public int layerCount()
layerCount field.public VkImageSubresourceLayers aspectMask(int value)
aspectMask field.public VkImageSubresourceLayers mipLevel(int value)
mipLevel field.public VkImageSubresourceLayers baseArrayLayer(int value)
baseArrayLayer field.public VkImageSubresourceLayers layerCount(int value)
layerCount field.public VkImageSubresourceLayers set(int aspectMask, int mipLevel, int baseArrayLayer, int layerCount)
public VkImageSubresourceLayers set(VkImageSubresourceLayers src)
src - the source structpublic static VkImageSubresourceLayers malloc()
VkImageSubresourceLayers instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageSubresourceLayers calloc()
VkImageSubresourceLayers instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageSubresourceLayers create()
VkImageSubresourceLayers instance allocated with BufferUtils.public static VkImageSubresourceLayers create(long address)
VkImageSubresourceLayers instance for the specified memory address.@Nullable public static VkImageSubresourceLayers createSafe(long address)
public static VkImageSubresourceLayers.Buffer malloc(int capacity)
VkImageSubresourceLayers.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer calloc(int capacity)
VkImageSubresourceLayers.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer create(int capacity)
VkImageSubresourceLayers.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer create(long address, int capacity)
VkImageSubresourceLayers.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageSubresourceLayers.Buffer createSafe(long address, int capacity)
public static VkImageSubresourceLayers mallocStack()
VkImageSubresourceLayers instance allocated on the thread-local MemoryStack.public static VkImageSubresourceLayers callocStack()
VkImageSubresourceLayers instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageSubresourceLayers mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageSubresourceLayers instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageSubresourceLayers callocStack(org.lwjgl.system.MemoryStack stack)
VkImageSubresourceLayers instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageSubresourceLayers.Buffer mallocStack(int capacity)
VkImageSubresourceLayers.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer callocStack(int capacity)
VkImageSubresourceLayers.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSubresourceLayers.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageSubresourceLayers.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSubresourceLayers.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 nbaseArrayLayer(long struct)
baseArrayLayer().public static int nlayerCount(long struct)
layerCount().public static void naspectMask(long struct,
int value)
aspectMask.public static void nmipLevel(long struct,
int value)
mipLevel.public static void nbaseArrayLayer(long struct,
int value)
baseArrayLayer.public static void nlayerCount(long struct,
int value)
layerCount.Copyright LWJGL. All Rights Reserved. License terms.