public class VkExternalMemoryProperties
extends org.lwjgl.system.Struct
compatibleHandleTypes must include at least handleType. Inclusion of a handle type in compatibleHandleTypes does not imply the values returned in VkImageFormatProperties2 will be the same when VkPhysicalDeviceExternalImageFormatInfo::handleType is set to that type. The application is responsible for querying the capabilities of all handle types intended for concurrent use in a single image and intersecting them to obtain the compatible set of capabilities.
VkExternalBufferProperties, VkExternalImageFormatProperties
externalMemoryFeatures – a bitmask of VkExternalMemoryFeatureFlagBits specifying the features of handleType.exportFromImportedHandleTypes – a bitmask of VkExternalMemoryHandleTypeFlagBits specifying which types of imported handle handleType can be exported from.compatibleHandleTypes – a bitmask of VkExternalMemoryHandleTypeFlagBits specifying handle types which can be specified at the same time as handleType when creating an image compatible with external memory.
struct VkExternalMemoryProperties {
VkExternalMemoryFeatureFlags externalMemoryFeatures;
VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExternalMemoryProperties.Buffer
An array of
VkExternalMemoryProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPATIBLEHANDLETYPES
The struct member offsets.
|
static int |
EXPORTFROMIMPORTEDHANDLETYPES
The struct member offsets.
|
static int |
EXTERNALMEMORYFEATURES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkExternalMemoryProperties(java.nio.ByteBuffer container)
Creates a
VkExternalMemoryProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
compatibleHandleTypes()
Returns the value of the
compatibleHandleTypes field. |
static VkExternalMemoryProperties |
create(long address)
Returns a new
VkExternalMemoryProperties instance for the specified memory address. |
static VkExternalMemoryProperties.Buffer |
create(long address,
int capacity)
Create a
VkExternalMemoryProperties.Buffer instance at the specified memory. |
static VkExternalMemoryProperties |
createSafe(long address)
|
static VkExternalMemoryProperties.Buffer |
createSafe(long address,
int capacity)
|
int |
exportFromImportedHandleTypes()
Returns the value of the
exportFromImportedHandleTypes field. |
int |
externalMemoryFeatures()
Returns the value of the
externalMemoryFeatures field. |
static int |
ncompatibleHandleTypes(long struct)
Unsafe version of
compatibleHandleTypes(). |
static int |
nexportFromImportedHandleTypes(long struct)
Unsafe version of
exportFromImportedHandleTypes(). |
static int |
nexternalMemoryFeatures(long struct)
Unsafe version of
externalMemoryFeatures(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int EXTERNALMEMORYFEATURES
public static final int EXPORTFROMIMPORTEDHANDLETYPES
public static final int COMPATIBLEHANDLETYPES
public VkExternalMemoryProperties(java.nio.ByteBuffer container)
VkExternalMemoryProperties 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 externalMemoryFeatures()
externalMemoryFeatures field.public int exportFromImportedHandleTypes()
exportFromImportedHandleTypes field.public int compatibleHandleTypes()
compatibleHandleTypes field.public static VkExternalMemoryProperties create(long address)
VkExternalMemoryProperties instance for the specified memory address.@Nullable public static VkExternalMemoryProperties createSafe(long address)
public static VkExternalMemoryProperties.Buffer create(long address, int capacity)
VkExternalMemoryProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExternalMemoryProperties.Buffer createSafe(long address, int capacity)
public static int nexternalMemoryFeatures(long struct)
externalMemoryFeatures().public static int nexportFromImportedHandleTypes(long struct)
exportFromImportedHandleTypes().public static int ncompatibleHandleTypes(long struct)
compatibleHandleTypes().Copyright LWJGL. All Rights Reserved. License terms.