public class VkImageFormatProperties2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the combination of parameters to vkGetPhysicalDeviceImageFormatProperties2 is not supported by the implementation for use in CreateImage, then all members of imageFormatProperties will be filled with zero.
Filling imageFormatProperties with zero for unsupported formats is an exception to the usual rule that output structures have undefined contents on error. This exception was unintentional, but is preserved for backwards compatibility. This exeption only applies to imageFormatProperties, not sType, pNext, or any structures chained from pNext.
sType must be STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkExternalImageFormatProperties, VkFilterCubicImageViewImageFormatPropertiesEXT, VkSamplerYcbcrConversionImageFormatProperties, or VkTextureLODGatherFormatPropertiesAMDsType member in the pNext chain must be uniqueVkImageFormatProperties, GetPhysicalDeviceImageFormatProperties2, GetPhysicalDeviceImageFormatProperties2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure. The pNext chain of VkImageFormatProperties2 is used to allow the specification of additional capabilities to be returned from vkGetPhysicalDeviceImageFormatProperties2.imageFormatProperties – a VkImageFormatProperties structure in which capabilities are returned.
struct VkImageFormatProperties2 {
VkStructureType sType;
void * pNext;
VkImageFormatProperties imageFormatProperties;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageFormatProperties2.Buffer
An array of
VkImageFormatProperties2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IMAGEFORMATPROPERTIES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageFormatProperties2(java.nio.ByteBuffer container)
Creates a
VkImageFormatProperties2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageFormatProperties2 |
calloc()
Returns a new
VkImageFormatProperties2 instance allocated with memCalloc. |
static VkImageFormatProperties2.Buffer |
calloc(int capacity)
Returns a new
VkImageFormatProperties2.Buffer instance allocated with memCalloc. |
static VkImageFormatProperties2 |
callocStack()
Returns a new
VkImageFormatProperties2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageFormatProperties2.Buffer |
callocStack(int capacity)
Returns a new
VkImageFormatProperties2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageFormatProperties2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatProperties2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageFormatProperties2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatProperties2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageFormatProperties2 |
create()
Returns a new
VkImageFormatProperties2 instance allocated with BufferUtils. |
static VkImageFormatProperties2.Buffer |
create(int capacity)
Returns a new
VkImageFormatProperties2.Buffer instance allocated with BufferUtils. |
static VkImageFormatProperties2 |
create(long address)
Returns a new
VkImageFormatProperties2 instance for the specified memory address. |
static VkImageFormatProperties2.Buffer |
create(long address,
int capacity)
Create a
VkImageFormatProperties2.Buffer instance at the specified memory. |
static VkImageFormatProperties2 |
createSafe(long address)
|
static VkImageFormatProperties2.Buffer |
createSafe(long address,
int capacity)
|
VkImageFormatProperties |
imageFormatProperties()
Returns a
VkImageFormatProperties view of the imageFormatProperties field. |
static VkImageFormatProperties2 |
malloc()
Returns a new
VkImageFormatProperties2 instance allocated with memAlloc. |
static VkImageFormatProperties2.Buffer |
malloc(int capacity)
Returns a new
VkImageFormatProperties2.Buffer instance allocated with memAlloc. |
static VkImageFormatProperties2 |
mallocStack()
Returns a new
VkImageFormatProperties2 instance allocated on the thread-local MemoryStack. |
static VkImageFormatProperties2.Buffer |
mallocStack(int capacity)
Returns a new
VkImageFormatProperties2.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageFormatProperties2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatProperties2.Buffer instance allocated on the specified MemoryStack. |
static VkImageFormatProperties2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageFormatProperties2 instance allocated on the specified MemoryStack. |
static VkImageFormatProperties |
nimageFormatProperties(long struct)
Unsafe version of
imageFormatProperties(). |
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. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageFormatProperties2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageFormatProperties2 |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkImageFormatProperties2 |
set(VkImageFormatProperties2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageFormatProperties2 |
sType(int value)
Sets the specified value to the
sType 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 IMAGEFORMATPROPERTIES
public VkImageFormatProperties2(java.nio.ByteBuffer container)
VkImageFormatProperties2 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 VkImageFormatProperties imageFormatProperties()
VkImageFormatProperties view of the imageFormatProperties field.public VkImageFormatProperties2 sType(int value)
sType field.public VkImageFormatProperties2 pNext(long value)
pNext field.public VkImageFormatProperties2 set(int sType, long pNext)
public VkImageFormatProperties2 set(VkImageFormatProperties2 src)
src - the source structpublic static VkImageFormatProperties2 malloc()
VkImageFormatProperties2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageFormatProperties2 calloc()
VkImageFormatProperties2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageFormatProperties2 create()
VkImageFormatProperties2 instance allocated with BufferUtils.public static VkImageFormatProperties2 create(long address)
VkImageFormatProperties2 instance for the specified memory address.@Nullable public static VkImageFormatProperties2 createSafe(long address)
public static VkImageFormatProperties2.Buffer malloc(int capacity)
VkImageFormatProperties2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer calloc(int capacity)
VkImageFormatProperties2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer create(int capacity)
VkImageFormatProperties2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer create(long address, int capacity)
VkImageFormatProperties2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageFormatProperties2.Buffer createSafe(long address, int capacity)
public static VkImageFormatProperties2 mallocStack()
VkImageFormatProperties2 instance allocated on the thread-local MemoryStack.public static VkImageFormatProperties2 callocStack()
VkImageFormatProperties2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageFormatProperties2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageFormatProperties2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageFormatProperties2 callocStack(org.lwjgl.system.MemoryStack stack)
VkImageFormatProperties2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageFormatProperties2.Buffer mallocStack(int capacity)
VkImageFormatProperties2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer callocStack(int capacity)
VkImageFormatProperties2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageFormatProperties2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageFormatProperties2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageFormatProperties2.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 VkImageFormatProperties nimageFormatProperties(long struct)
imageFormatProperties().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.