namespace Brutal.VulkanApi { /// /// VkPhysicalDevice - Opaque handle to a physical device object /// /// /// /// Vulkan separates the concept of physical and logical devices. /// A physical device usually represents a single complete implementation of /// Vulkan (excluding instance-level functionality) available to the host, of /// which there are a finite number. /// A logical device represents an instance of that implementation with its own /// state and resources independent of other logical devices. /// /// /// Physical devices cannot: be independently destroyed, and are instead /// destroyed with the VkInstance that they were retrieved from. /// /// /// Physical devices are represented by VkPhysicalDevice handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_HANDLE(VkPhysicalDevice) /// /// public readonly unsafe struct VkPhysicalDevice : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.PhysicalDevice; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkPhysicalDevice(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkPhysicalDevice NullHandle = new(); } }