Class VkPhysicalDeviceExternalBufferInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkPhysicalDeviceExternalBufferInfoKHR

    public class VkPhysicalDeviceExternalBufferInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying buffer creation parameters.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO
    • pNext must be NULL
    • flags must be a valid combination of VkBufferCreateFlagBits values
    • usage must be a valid combination of VkBufferUsageFlagBits values
    • usage must not be 0
    • handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
    See Also

    GetPhysicalDeviceExternalBufferProperties, GetPhysicalDeviceExternalBufferPropertiesKHR

    Member documentation

    • sType – the type of this structure
    • pNext – NULL or a pointer to an extension-specific structure.
    • flags – a bitmask of VkBufferCreateFlagBits describing additional parameters of the buffer, corresponding to VkBufferCreateInfo::flags.
    • usage – a bitmask of VkBufferUsageFlagBits describing the intended usage of the buffer, corresponding to VkBufferCreateInfo::usage.
    • handleType – a VkExternalMemoryHandleTypeFlagBits value specifying the memory handle type that will be used with the memory associated with the buffer.

    Layout

    
     struct VkPhysicalDeviceExternalBufferInfo {
         VkStructureType sType;
         void const * pNext;
         VkBufferCreateFlags flags;
         VkBufferUsageFlags usage;
         VkExternalMemoryHandleTypeFlagBits handleType;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, USAGE, HANDLETYPE

        The struct member offsets.
    • Constructor Detail

      • VkPhysicalDeviceExternalBufferInfo

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