using System.Runtime.Versioning; namespace Brutal.VulkanApi.Android { /// /// VkImportAndroidHardwareBufferInfoANDROID - Import memory from an Android hardware buffer /// /// /// /// To import memory created outside of the current Vulkan instance from an /// Android hardware buffer, add a /// VkImportAndroidHardwareBufferInfoANDROID structure to the pNext /// chain of the VkMemoryAllocateInfo structure. /// The VkImportAndroidHardwareBufferInfoANDROID structure is defined as: /// /// /// // Provided by VK_ANDROID_external_memory_android_hardware_buffer /// typedef struct VkImportAndroidHardwareBufferInfoANDROID { /// VkStructureType sType; /// const void* pNext; /// struct AHardwareBuffer* buffer; /// } VkImportAndroidHardwareBufferInfoANDROID; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] [SupportedOSPlatform("android")] public unsafe partial struct VkImportAndroidHardwareBufferInfoANDROID() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportANDROIDHardwareBufferInfoANDROID; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Buffer is the Android hardware buffer to import. /// [FieldOffset(16)] public void* Buffer; } }