namespace Brutal.VulkanApi { /// /// VkSystemAllocationScope - Allocation scope /// /// /// /// [[memory-host-allocation-scope]] /// Each allocation has an allocation scope defining its lifetime and which /// object it is associated with. /// Possible values passed to the allocationScope parameter of the /// callback functions specified by VkAllocationCallbacks, indicating the /// allocation scope, are: /// /// /// // Provided by VK_VERSION_1_0 /// typedef enum VkSystemAllocationScope { /// VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0, /// VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1, /// VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2, /// VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3, /// VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4, /// } VkSystemAllocationScope; /// /// public enum VkSystemAllocationScope : int { /// /// Command specifies that the allocation is scoped to the duration of the Vulkan command. /// Command = 0, /// /// Object specifies that the allocation is scoped to the lifetime of the Vulkan object that is being created or used. /// Object = 1, /// /// Cache specifies that the allocation is scoped to the lifetime of a VkPipelineCache object. /// Cache = 2, /// /// Device specifies that the allocation is scoped to the lifetime of the Vulkan device. /// Device = 3, /// /// Instance specifies that the allocation is scoped to the lifetime of the Vulkan instance. Most Vulkan commands operate on a single object, or there is a sole object that is being created or manipulated. When an allocation uses an allocation scope of VK_SYSTEM_ALLOCATION_SCOPE_OBJECT or VK_SYSTEM_ALLOCATION_SCOPE_CACHE, the allocation is scoped to the object being created or manipulated. When an implementation requires host memory, it will make callbacks to the application using the most specific allocator and allocation scope available: /// Instance = 4, /// /// MaxEnum /// MaxEnum = 0x7FFFFFFF, } }