namespace Brutal.VulkanApi
{
///
/// VkDescriptorPool - Opaque handle to a descriptor pool object
///
///
///
/// A descriptor pool maintains a pool of descriptors, from which descriptor
/// sets are allocated.
/// Descriptor pools are externally synchronized, meaning that the application
/// must not allocate and/or free descriptor sets from the same pool in
/// multiple threads simultaneously.
///
///
/// Descriptor pools are represented by VkDescriptorPool handles:
///
///
/// // Provided by VK_VERSION_1_0
/// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool)
///
///
public readonly unsafe struct VkDescriptorPool : IVulkanHandle
{
///
public VkObjectType VkObjectType => VkObjectType.DescriptorPool;
///
public nint VkHandle { get; }
/// Construct from an existing pointer
public VkDescriptorPool(nint handle)
{
VkHandle = handle;
}
///
public bool IsNull()
{
return VkHandle == 0;
}
public static VkDescriptorPool NullHandle = new();
}
}