public class VkImageFormatListCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If viewFormatCount is zero, pViewFormats is ignored and the image is created as if the VkImageFormatListCreateInfoKHR structure were not included in the pNext list of VkImageCreateInfo.
viewFormatCount is not 0, all of the formats in the pViewFormats array must be compatible with the format specified in the format field of VkImageCreateInfo, as described in the compatibility table.VkImageCreateInfo::flags does not contain IMAGE_CREATE_MUTABLE_FORMAT_BIT, viewFormatCount must be 0 or 1.viewFormatCount is not 0, VkImageCreateInfo::format must be in pViewFormats.sType must be STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHRviewFormatCount is not 0, pViewFormats must be a valid pointer to an array of viewFormatCount valid VkFormat valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.viewFormatCount – the number of entries in the pViewFormats array.pViewFormats – an array which lists of all formats which can be used when creating views of this image.
struct VkImageFormatListCreateInfoKHR {
VkStructureType sType;
void const * pNext;
uint32_t viewFormatCount;
VkFormat const * pViewFormats;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageFormatListCreateInfoKHR.Buffer
An array of
VkImageFormatListCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PVIEWFORMATS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VIEWFORMATCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageFormatListCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkImageFormatListCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageFormatListCreateInfoKHR |
calloc()
Returns a new
VkImageFormatListCreateInfoKHR instance allocated with memCalloc. |
static VkImageFormatListCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkImageFormatListCreateInfoKHR |
callocStack()
Returns a new
VkImageFormatListCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageFormatListCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageFormatListCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageFormatListCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatListCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageFormatListCreateInfoKHR |
create()
Returns a new
VkImageFormatListCreateInfoKHR instance allocated with BufferUtils. |
static VkImageFormatListCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkImageFormatListCreateInfoKHR |
create(long address)
Returns a new
VkImageFormatListCreateInfoKHR instance for the specified memory address. |
static VkImageFormatListCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkImageFormatListCreateInfoKHR.Buffer instance at the specified memory. |
static VkImageFormatListCreateInfoKHR |
createSafe(long address)
|
static VkImageFormatListCreateInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkImageFormatListCreateInfoKHR |
malloc()
Returns a new
VkImageFormatListCreateInfoKHR instance allocated with memAlloc. |
static VkImageFormatListCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkImageFormatListCreateInfoKHR |
mallocStack()
Returns a new
VkImageFormatListCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkImageFormatListCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageFormatListCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkImageFormatListCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatListCreateInfoKHR 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 java.nio.IntBuffer |
npViewFormats(long struct)
Unsafe version of
pViewFormats. |
static void |
npViewFormats(long struct,
java.nio.IntBuffer value)
Unsafe version of
pViewFormats. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nviewFormatCount(long struct)
Unsafe version of
viewFormatCount(). |
static void |
nviewFormatCount(long struct,
int value)
Sets the specified value to the
viewFormatCount field of the specified struct. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageFormatListCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
pViewFormats()
Returns a
IntBuffer view of the data pointed to by the pViewFormats field. |
VkImageFormatListCreateInfoKHR |
pViewFormats(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pViewFormats field. |
VkImageFormatListCreateInfoKHR |
set(int sType,
long pNext,
java.nio.IntBuffer pViewFormats)
Initializes this struct with the specified values.
|
VkImageFormatListCreateInfoKHR |
set(VkImageFormatListCreateInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageFormatListCreateInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
int |
viewFormatCount()
Returns the value of the
viewFormatCount 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 VIEWFORMATCOUNT
public static final int PVIEWFORMATS
public VkImageFormatListCreateInfoKHR(java.nio.ByteBuffer container)
VkImageFormatListCreateInfoKHR 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 viewFormatCount()
viewFormatCount field.@Nullable public java.nio.IntBuffer pViewFormats()
IntBuffer view of the data pointed to by the pViewFormats field.public VkImageFormatListCreateInfoKHR sType(int value)
sType field.public VkImageFormatListCreateInfoKHR pNext(long value)
pNext field.public VkImageFormatListCreateInfoKHR pViewFormats(@Nullable java.nio.IntBuffer value)
IntBuffer to the pViewFormats field.public VkImageFormatListCreateInfoKHR set(int sType, long pNext, @Nullable java.nio.IntBuffer pViewFormats)
public VkImageFormatListCreateInfoKHR set(VkImageFormatListCreateInfoKHR src)
src - the source structpublic static VkImageFormatListCreateInfoKHR malloc()
VkImageFormatListCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageFormatListCreateInfoKHR calloc()
VkImageFormatListCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageFormatListCreateInfoKHR create()
VkImageFormatListCreateInfoKHR instance allocated with BufferUtils.public static VkImageFormatListCreateInfoKHR create(long address)
VkImageFormatListCreateInfoKHR instance for the specified memory address.@Nullable public static VkImageFormatListCreateInfoKHR createSafe(long address)
public static VkImageFormatListCreateInfoKHR.Buffer malloc(int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer calloc(int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer create(int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer create(long address, int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageFormatListCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkImageFormatListCreateInfoKHR mallocStack()
VkImageFormatListCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkImageFormatListCreateInfoKHR callocStack()
VkImageFormatListCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageFormatListCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageFormatListCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageFormatListCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkImageFormatListCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageFormatListCreateInfoKHR.Buffer mallocStack(int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer callocStack(int capacity)
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageFormatListCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageFormatListCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageFormatListCreateInfoKHR.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 nviewFormatCount(long struct)
viewFormatCount().@Nullable public static java.nio.IntBuffer npViewFormats(long struct)
pViewFormats.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nviewFormatCount(long struct,
int value)
viewFormatCount field of the specified struct.public static void npViewFormats(long struct,
@Nullable
java.nio.IntBuffer value)
pViewFormats.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.