public class VkImageViewUsageCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
When this structure is chained to VkImageViewCreateInfo the usage field overrides the implicit usage parameter inherited from image creation time and its value is used instead for the purposes of determining the valid usage conditions of VkImageViewCreateInfo.
sType must be STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFOusage must be a valid combination of VkImageUsageFlagBits valuesusage must not be 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.usage – a bitmask describing the allowed usages of the image view. See VkImageUsageFlagBits for a description of the supported bits.
struct VkImageViewUsageCreateInfo {
VkStructureType sType;
void const * pNext;
VkImageUsageFlags usage;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageViewUsageCreateInfo.Buffer
An array of
VkImageViewUsageCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
USAGE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageViewUsageCreateInfo(java.nio.ByteBuffer container)
Creates a
VkImageViewUsageCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageViewUsageCreateInfo |
calloc()
Returns a new
VkImageViewUsageCreateInfo instance allocated with memCalloc. |
static VkImageViewUsageCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated with memCalloc. |
static VkImageViewUsageCreateInfo |
callocStack()
Returns a new
VkImageViewUsageCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewUsageCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewUsageCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageViewUsageCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewUsageCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageViewUsageCreateInfo |
create()
Returns a new
VkImageViewUsageCreateInfo instance allocated with BufferUtils. |
static VkImageViewUsageCreateInfo.Buffer |
create(int capacity)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated with BufferUtils. |
static VkImageViewUsageCreateInfo |
create(long address)
Returns a new
VkImageViewUsageCreateInfo instance for the specified memory address. |
static VkImageViewUsageCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkImageViewUsageCreateInfo.Buffer instance at the specified memory. |
static VkImageViewUsageCreateInfo |
createSafe(long address)
|
static VkImageViewUsageCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkImageViewUsageCreateInfo |
malloc()
Returns a new
VkImageViewUsageCreateInfo instance allocated with memAlloc. |
static VkImageViewUsageCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated with memAlloc. |
static VkImageViewUsageCreateInfo |
mallocStack()
Returns a new
VkImageViewUsageCreateInfo instance allocated on the thread-local MemoryStack. |
static VkImageViewUsageCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageViewUsageCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewUsageCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkImageViewUsageCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewUsageCreateInfo instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nusage(long struct)
Unsafe version of
usage(). |
static void |
nusage(long struct,
int value)
Unsafe version of
usage. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageViewUsageCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageViewUsageCreateInfo |
set(int sType,
long pNext,
int usage)
Initializes this struct with the specified values.
|
VkImageViewUsageCreateInfo |
set(VkImageViewUsageCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageViewUsageCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
usage()
Returns the value of the
usage field. |
VkImageViewUsageCreateInfo |
usage(int value)
Sets the specified value to the
usage field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int USAGE
public VkImageViewUsageCreateInfo(java.nio.ByteBuffer container)
VkImageViewUsageCreateInfo 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 sType()
sType field.public long pNext()
pNext field.public int usage()
usage field.public VkImageViewUsageCreateInfo sType(int value)
sType field.public VkImageViewUsageCreateInfo pNext(long value)
pNext field.public VkImageViewUsageCreateInfo usage(int value)
usage field.public VkImageViewUsageCreateInfo set(int sType, long pNext, int usage)
public VkImageViewUsageCreateInfo set(VkImageViewUsageCreateInfo src)
src - the source structpublic static VkImageViewUsageCreateInfo malloc()
VkImageViewUsageCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageViewUsageCreateInfo calloc()
VkImageViewUsageCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageViewUsageCreateInfo create()
VkImageViewUsageCreateInfo instance allocated with BufferUtils.public static VkImageViewUsageCreateInfo create(long address)
VkImageViewUsageCreateInfo instance for the specified memory address.@Nullable public static VkImageViewUsageCreateInfo createSafe(long address)
public static VkImageViewUsageCreateInfo.Buffer malloc(int capacity)
VkImageViewUsageCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer calloc(int capacity)
VkImageViewUsageCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer create(int capacity)
VkImageViewUsageCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer create(long address, int capacity)
VkImageViewUsageCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageViewUsageCreateInfo.Buffer createSafe(long address, int capacity)
public static VkImageViewUsageCreateInfo mallocStack()
VkImageViewUsageCreateInfo instance allocated on the thread-local MemoryStack.public static VkImageViewUsageCreateInfo callocStack()
VkImageViewUsageCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageViewUsageCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewUsageCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageViewUsageCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewUsageCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageViewUsageCreateInfo.Buffer mallocStack(int capacity)
VkImageViewUsageCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer callocStack(int capacity)
VkImageViewUsageCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewUsageCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageViewUsageCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewUsageCreateInfo.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nusage(long struct)
usage().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nusage(long struct,
int value)
usage.Copyright LWJGL. All Rights Reserved. License terms.