Class VkExternalMemoryProperties

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class VkExternalMemoryProperties
    extends Struct
    Structure specifying external memory handle type capabilities.

    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.

    See Also

    VkExternalBufferProperties, VkExternalImageFormatProperties

    Member documentation

    • 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;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VkExternalMemoryProperties

        public VkExternalMemoryProperties​(java.nio.ByteBuffer container)
        Creates a 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • externalMemoryFeatures

        public int externalMemoryFeatures()
        Returns the value of the externalMemoryFeatures field.
      • exportFromImportedHandleTypes

        public int exportFromImportedHandleTypes()
        Returns the value of the exportFromImportedHandleTypes field.
      • compatibleHandleTypes

        public int compatibleHandleTypes()
        Returns the value of the compatibleHandleTypes field.
      • create

        public static VkExternalMemoryProperties create​(long address)
        Returns a new VkExternalMemoryProperties instance for the specified memory address.
      • nexternalMemoryFeatures

        public static int nexternalMemoryFeatures​(long struct)
        Unsafe version of externalMemoryFeatures().
      • ncompatibleHandleTypes

        public static int ncompatibleHandleTypes​(long struct)
        Unsafe version of compatibleHandleTypes().