public class VkPhysicalDeviceImageFormatInfo2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The members of VkPhysicalDeviceImageFormatInfo2 correspond to the arguments to GetPhysicalDeviceImageFormatProperties, with sType and pNext added for extensibility.
tiling must be IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT if and only if the pNext chain includes VkPhysicalDeviceImageDrmFormatModifierInfoEXT.tiling is IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT and flags contains IMAGE_CREATE_MUTABLE_FORMAT_BIT, then the pNext chain must include VkImageFormatListCreateInfoKHR with non-zero viewFormatCount.sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkImageFormatListCreateInfoKHR, VkImageStencilUsageCreateInfoEXT, VkPhysicalDeviceExternalImageFormatInfo, VkPhysicalDeviceImageDrmFormatModifierInfoEXT, or VkPhysicalDeviceImageViewImageFormatInfoEXTsType member in the pNext chain must be uniqueformat must be a valid VkFormat valuetype must be a valid VkImageType valuetiling must be a valid VkImageTiling valueusage must be a valid combination of VkImageUsageFlagBits valuesusage must not be 0flags must be a valid combination of VkImageCreateFlagBits valuesGetPhysicalDeviceImageFormatProperties2, GetPhysicalDeviceImageFormatProperties2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure. The pNext chain of VkPhysicalDeviceImageFormatInfo2 is used to provide additional image parameters to vkGetPhysicalDeviceImageFormatProperties2.format – a VkFormat value indicating the image format, corresponding to VkImageCreateInfo::format.type – a VkImageType value indicating the image type, corresponding to VkImageCreateInfo::imageType.tiling – a VkImageTiling value indicating the image tiling, corresponding to VkImageCreateInfo::tiling.usage – a bitmask of VkImageUsageFlagBits indicating the intended usage of the image, corresponding to VkImageCreateInfo::usage.flags – a bitmask of VkImageCreateFlagBits indicating additional parameters of the image, corresponding to VkImageCreateInfo::flags.
struct VkPhysicalDeviceImageFormatInfo2 {
VkStructureType sType;
void const * pNext;
VkFormat format;
VkImageType type;
VkImageTiling tiling;
VkImageUsageFlags usage;
VkImageCreateFlags flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceImageFormatInfo2.Buffer
An array of
VkPhysicalDeviceImageFormatInfo2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FORMAT
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.
|
static int |
TILING
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
static int |
USAGE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceImageFormatInfo2(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceImageFormatInfo2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceImageFormatInfo2 |
calloc()
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated with memCalloc. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceImageFormatInfo2 |
callocStack()
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageFormatInfo2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageFormatInfo2 |
create()
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated with BufferUtils. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceImageFormatInfo2 |
create(long address)
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance for the specified memory address. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceImageFormatInfo2.Buffer instance at the specified memory. |
static VkPhysicalDeviceImageFormatInfo2 |
createSafe(long address)
|
static VkPhysicalDeviceImageFormatInfo2.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPhysicalDeviceImageFormatInfo2 |
flags(int value)
Sets the specified value to the
flags field. |
int |
format()
Returns the value of the
format field. |
VkPhysicalDeviceImageFormatInfo2 |
format(int value)
Sets the specified value to the
format field. |
static VkPhysicalDeviceImageFormatInfo2 |
malloc()
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated with memAlloc. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceImageFormatInfo2 |
mallocStack()
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceImageFormatInfo2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceImageFormatInfo2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageFormatInfo2 instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
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 |
ntiling(long struct)
Unsafe version of
tiling(). |
static void |
ntiling(long struct,
int value)
Unsafe version of
tiling. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
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. |
VkPhysicalDeviceImageFormatInfo2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceImageFormatInfo2 |
set(int sType,
long pNext,
int format,
int type,
int tiling,
int usage,
int flags)
Initializes this struct with the specified values.
|
VkPhysicalDeviceImageFormatInfo2 |
set(VkPhysicalDeviceImageFormatInfo2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceImageFormatInfo2 |
sType(int value)
Sets the specified value to the
sType field. |
int |
tiling()
Returns the value of the
tiling field. |
VkPhysicalDeviceImageFormatInfo2 |
tiling(int value)
Sets the specified value to the
tiling field. |
int |
type()
Returns the value of the
type field. |
VkPhysicalDeviceImageFormatInfo2 |
type(int value)
Sets the specified value to the
type field. |
int |
usage()
Returns the value of the
usage field. |
VkPhysicalDeviceImageFormatInfo2 |
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 FORMAT
public static final int TYPE
public static final int TILING
public static final int USAGE
public static final int FLAGS
public VkPhysicalDeviceImageFormatInfo2(java.nio.ByteBuffer container)
VkPhysicalDeviceImageFormatInfo2 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 format()
format field.public int type()
type field.public int tiling()
tiling field.public int usage()
usage field.public int flags()
flags field.public VkPhysicalDeviceImageFormatInfo2 sType(int value)
sType field.public VkPhysicalDeviceImageFormatInfo2 pNext(long value)
pNext field.public VkPhysicalDeviceImageFormatInfo2 format(int value)
format field.public VkPhysicalDeviceImageFormatInfo2 type(int value)
type field.public VkPhysicalDeviceImageFormatInfo2 tiling(int value)
tiling field.public VkPhysicalDeviceImageFormatInfo2 usage(int value)
usage field.public VkPhysicalDeviceImageFormatInfo2 flags(int value)
flags field.public VkPhysicalDeviceImageFormatInfo2 set(int sType, long pNext, int format, int type, int tiling, int usage, int flags)
public VkPhysicalDeviceImageFormatInfo2 set(VkPhysicalDeviceImageFormatInfo2 src)
src - the source structpublic static VkPhysicalDeviceImageFormatInfo2 malloc()
VkPhysicalDeviceImageFormatInfo2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceImageFormatInfo2 calloc()
VkPhysicalDeviceImageFormatInfo2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceImageFormatInfo2 create()
VkPhysicalDeviceImageFormatInfo2 instance allocated with BufferUtils.public static VkPhysicalDeviceImageFormatInfo2 create(long address)
VkPhysicalDeviceImageFormatInfo2 instance for the specified memory address.@Nullable public static VkPhysicalDeviceImageFormatInfo2 createSafe(long address)
public static VkPhysicalDeviceImageFormatInfo2.Buffer malloc(int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer calloc(int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer create(int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer create(long address, int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceImageFormatInfo2.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceImageFormatInfo2 mallocStack()
VkPhysicalDeviceImageFormatInfo2 instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceImageFormatInfo2 callocStack()
VkPhysicalDeviceImageFormatInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceImageFormatInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageFormatInfo2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceImageFormatInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageFormatInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceImageFormatInfo2.Buffer mallocStack(int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer callocStack(int capacity)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageFormatInfo2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceImageFormatInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageFormatInfo2.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 nformat(long struct)
format().public static int ntype(long struct)
type().public static int ntiling(long struct)
tiling().public static int nusage(long struct)
usage().public static int nflags(long struct)
flags().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nformat(long struct,
int value)
format.public static void ntype(long struct,
int value)
type.public static void ntiling(long struct,
int value)
tiling.public static void nusage(long struct,
int value)
usage.public static void nflags(long struct,
int value)
flags.Copyright LWJGL. All Rights Reserved. License terms.