Package org.lwjgl.vulkan
Class VkExternalMemoryProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalMemoryProperties
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkExternalMemoryPropertiesKHR
public class VkExternalMemoryProperties extends org.lwjgl.system.Struct
Structure specifying external memory handle type capabilities.Description
compatibleHandleTypes
must include at leasthandleType
. Inclusion of a handle type incompatibleHandleTypes
does not imply the values returned inVkImageFormatProperties2
will be the same whenVkPhysicalDeviceExternalImageFormatInfo
::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.See Also
VkExternalBufferProperties
,VkExternalImageFormatProperties
Member documentation
externalMemoryFeatures
– a bitmask ofVkExternalMemoryFeatureFlagBits
specifying the features ofhandleType
.exportFromImportedHandleTypes
– a bitmask ofVkExternalMemoryHandleTypeFlagBits
specifying which types of imported handlehandleType
can be exported from.compatibleHandleTypes
– a bitmask ofVkExternalMemoryHandleTypeFlagBits
specifying handle types which can be specified at the same time ashandleType
when creating an image compatible with external memory.
Layout
struct VkExternalMemoryProperties { VkExternalMemoryFeatureFlags externalMemoryFeatures; VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes; VkExternalMemoryHandleTypeFlags compatibleHandleTypes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkExternalMemoryProperties.Buffer
An array ofVkExternalMemoryProperties
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COMPATIBLEHANDLETYPES
EXPORTFROMIMPORTEDHANDLETYPES
EXTERNALMEMORYFEATURESThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkExternalMemoryProperties(java.nio.ByteBuffer container)
Creates aVkExternalMemoryProperties
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compatibleHandleTypes()
Returns the value of thecompatibleHandleTypes
field.static VkExternalMemoryProperties
create(long address)
Returns a newVkExternalMemoryProperties
instance for the specified memory address.static VkExternalMemoryProperties.Buffer
create(long address, int capacity)
Create aVkExternalMemoryProperties.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 theexportFromImportedHandleTypes
field.int
externalMemoryFeatures()
Returns the value of theexternalMemoryFeatures
field.static int
ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes()
.static int
nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes()
.static int
nexternalMemoryFeatures(long struct)
Unsafe version ofexternalMemoryFeatures()
.int
sizeof()
-
-
-
Constructor Detail
-
VkExternalMemoryProperties
public VkExternalMemoryProperties(java.nio.ByteBuffer container)
Creates aVkExternalMemoryProperties
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
externalMemoryFeatures
public int externalMemoryFeatures()
Returns the value of theexternalMemoryFeatures
field.
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()
Returns the value of theexportFromImportedHandleTypes
field.
-
compatibleHandleTypes
public int compatibleHandleTypes()
Returns the value of thecompatibleHandleTypes
field.
-
create
public static VkExternalMemoryProperties create(long address)
Returns a newVkExternalMemoryProperties
instance for the specified memory address.
-
createSafe
@Nullable public static VkExternalMemoryProperties createSafe(long address)
-
create
public static VkExternalMemoryProperties.Buffer create(long address, int capacity)
Create aVkExternalMemoryProperties.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkExternalMemoryProperties.Buffer createSafe(long address, int capacity)
-
nexternalMemoryFeatures
public static int nexternalMemoryFeatures(long struct)
Unsafe version ofexternalMemoryFeatures()
.
-
nexportFromImportedHandleTypes
public static int nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes()
.
-
ncompatibleHandleTypes
public static int ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes()
.
-
-