namespace Brutal.VulkanApi { /// /// VkAllocationCallbacks - Structure containing callback function pointers for memory allocation /// /// /// /// Allocators are provided by the application as a pointer to a /// VkAllocationCallbacks structure: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkAllocationCallbacks { /// void* pUserData; /// PFN_vkAllocationFunction pfnAllocation; /// PFN_vkReallocationFunction pfnReallocation; /// PFN_vkFreeFunction pfnFree; /// PFN_vkInternalAllocationNotification pfnInternalAllocation; /// PFN_vkInternalFreeNotification pfnInternalFree; /// } VkAllocationCallbacks; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public unsafe partial struct VkAllocationCallbacks() { /// /// UserData /// [FieldOffset(0)] public void* UserData; /// /// PfnAllocation /// [FieldOffset(8)] public PfnVkAllocationFunction PfnAllocation; /// /// PfnReallocation /// [FieldOffset(16)] public PfnVkReallocationFunction PfnReallocation; /// /// PfnFree /// [FieldOffset(24)] public PfnVkFreeFunction PfnFree; /// /// PfnInternalAllocation /// [FieldOffset(32)] public PfnVkInternalAllocationNotification PfnInternalAllocation; /// /// PfnInternalFree /// [FieldOffset(40)] public PfnVkInternalFreeNotification PfnInternalFree; } }