Class VkExternalMemoryProperties

All Implemented Interfaces:
Pointer
Direct Known Subclasses:
VkExternalMemoryPropertiesKHR

public class VkExternalMemoryProperties extends Struct<VkExternalMemoryProperties>

 struct VkExternalMemoryProperties {
     VkExternalMemoryFeatureFlags externalMemoryFeatures;
     VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
     VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • EXTERNALMEMORYFEATURES

      public static final int EXTERNALMEMORYFEATURES
      The struct member offsets.
    • EXPORTFROMIMPORTEDHANDLETYPES

      public static final int EXPORTFROMIMPORTEDHANDLETYPES
      The struct member offsets.
    • COMPATIBLEHANDLETYPES

      public static final int COMPATIBLEHANDLETYPES
      The struct member offsets.
  • Constructor Details

    • VkExternalMemoryProperties

      public VkExternalMemoryProperties(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkExternalMemoryProperties>
    • 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.
    • createSafe

      public static @Nullable VkExternalMemoryProperties createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VkExternalMemoryProperties.Buffer create(long address, int capacity)
      Create a VkExternalMemoryProperties.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkExternalMemoryProperties.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nexternalMemoryFeatures

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

      public static int nexportFromImportedHandleTypes(long struct)
    • ncompatibleHandleTypes

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