public class VkFormatProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If no format feature flags are supported, the format itself is not supported, and images of that format cannot be created.
If format is a block-compressed format, then bufferFeatures must not support any features for the format.
If format is not a multi-plane format then linearTilingFeatures and optimalTilingFeatures must not contain FORMAT_FEATURE_DISJOINT_BIT.
VkFormatProperties2, GetPhysicalDeviceFormatProperties
linearTilingFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by images created with a tiling parameter of IMAGE_TILING_LINEAR.optimalTilingFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by images created with a tiling parameter of IMAGE_TILING_OPTIMAL.bufferFeatures – a bitmask of VkFormatFeatureFlagBits specifying features supported by buffers.
struct VkFormatProperties {
VkFormatFeatureFlags linearTilingFeatures;
VkFormatFeatureFlags optimalTilingFeatures;
VkFormatFeatureFlags bufferFeatures;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkFormatProperties.Buffer
An array of
VkFormatProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFERFEATURES
The struct member offsets.
|
static int |
LINEARTILINGFEATURES
The struct member offsets.
|
static int |
OPTIMALTILINGFEATURES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkFormatProperties(java.nio.ByteBuffer container)
Creates a
VkFormatProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bufferFeatures()
Returns the value of the
bufferFeatures field. |
static VkFormatProperties |
calloc()
Returns a new
VkFormatProperties instance allocated with memCalloc. |
static VkFormatProperties.Buffer |
calloc(int capacity)
Returns a new
VkFormatProperties.Buffer instance allocated with memCalloc. |
static VkFormatProperties |
callocStack()
Returns a new
VkFormatProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFormatProperties.Buffer |
callocStack(int capacity)
Returns a new
VkFormatProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFormatProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFormatProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFormatProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFormatProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFormatProperties |
create()
Returns a new
VkFormatProperties instance allocated with BufferUtils. |
static VkFormatProperties.Buffer |
create(int capacity)
Returns a new
VkFormatProperties.Buffer instance allocated with BufferUtils. |
static VkFormatProperties |
create(long address)
Returns a new
VkFormatProperties instance for the specified memory address. |
static VkFormatProperties.Buffer |
create(long address,
int capacity)
Create a
VkFormatProperties.Buffer instance at the specified memory. |
static VkFormatProperties |
createSafe(long address)
|
static VkFormatProperties.Buffer |
createSafe(long address,
int capacity)
|
int |
linearTilingFeatures()
Returns the value of the
linearTilingFeatures field. |
static VkFormatProperties |
malloc()
Returns a new
VkFormatProperties instance allocated with memAlloc. |
static VkFormatProperties.Buffer |
malloc(int capacity)
Returns a new
VkFormatProperties.Buffer instance allocated with memAlloc. |
static VkFormatProperties |
mallocStack()
Returns a new
VkFormatProperties instance allocated on the thread-local MemoryStack. |
static VkFormatProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkFormatProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkFormatProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFormatProperties.Buffer instance allocated on the specified MemoryStack. |
static VkFormatProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFormatProperties instance allocated on the specified MemoryStack. |
static int |
nbufferFeatures(long struct)
Unsafe version of
bufferFeatures(). |
static int |
nlinearTilingFeatures(long struct)
Unsafe version of
linearTilingFeatures(). |
static int |
noptimalTilingFeatures(long struct)
Unsafe version of
optimalTilingFeatures(). |
int |
optimalTilingFeatures()
Returns the value of the
optimalTilingFeatures field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LINEARTILINGFEATURES
public static final int OPTIMALTILINGFEATURES
public static final int BUFFERFEATURES
public VkFormatProperties(java.nio.ByteBuffer container)
VkFormatProperties 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 linearTilingFeatures()
linearTilingFeatures field.public int optimalTilingFeatures()
optimalTilingFeatures field.public int bufferFeatures()
bufferFeatures field.public static VkFormatProperties malloc()
VkFormatProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkFormatProperties calloc()
VkFormatProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkFormatProperties create()
VkFormatProperties instance allocated with BufferUtils.public static VkFormatProperties create(long address)
VkFormatProperties instance for the specified memory address.@Nullable public static VkFormatProperties createSafe(long address)
public static VkFormatProperties.Buffer malloc(int capacity)
VkFormatProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFormatProperties.Buffer calloc(int capacity)
VkFormatProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFormatProperties.Buffer create(int capacity)
VkFormatProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkFormatProperties.Buffer create(long address, int capacity)
VkFormatProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkFormatProperties.Buffer createSafe(long address, int capacity)
public static VkFormatProperties mallocStack()
VkFormatProperties instance allocated on the thread-local MemoryStack.public static VkFormatProperties callocStack()
VkFormatProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkFormatProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkFormatProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkFormatProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkFormatProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkFormatProperties.Buffer mallocStack(int capacity)
VkFormatProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkFormatProperties.Buffer callocStack(int capacity)
VkFormatProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkFormatProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFormatProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkFormatProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFormatProperties.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 nlinearTilingFeatures(long struct)
linearTilingFeatures().public static int noptimalTilingFeatures(long struct)
optimalTilingFeatures().public static int nbufferFeatures(long struct)
bufferFeatures().Copyright LWJGL. All Rights Reserved. License terms.