Class VkImportMemoryFdInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImportMemoryFdInfoKHR>
org.lwjgl.vulkan.VkImportMemoryFdInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkImportMemoryFdInfoKHR extends org.lwjgl.system.Struct<VkImportMemoryFdInfoKHR> implements org.lwjgl.system.NativeResource
Import memory created on the same physical device from a file descriptor.
Description

Importing memory from a file descriptor transfers ownership of the file descriptor from the application to the Vulkan implementation. The application must not perform any operations on the file descriptor after a successful import. The imported memory object holds a reference to its payload.

Applications can import the same payload into multiple instances of Vulkan, into the same instance from which it was exported, and multiple times into a given Vulkan instance. In all cases, each import operation must create a distinct VkDeviceMemory object.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkImportMemoryFdInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkExternalMemoryHandleTypeFlagBits handleType();
     int fd();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • HANDLETYPE

      public static final int HANDLETYPE
      The struct member offsets.
    • FD

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

    • VkImportMemoryFdInfoKHR

      public VkImportMemoryFdInfoKHR(ByteBuffer container)
      Creates a VkImportMemoryFdInfoKHR 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