namespace Brutal.VulkanApi { /// /// VkImage - Opaque handle to an image object /// /// /// /// Images are specialized resources that have multi-dimensional access, as /// outlined in the here chapter. /// Images can be used for various purposes, such as rendering /// attachments^, for copy operations^, or accessed through shaders /// via resource descriptors^. /// /// /// Images are represented by VkImage handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage) /// /// public readonly unsafe struct VkImage : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Image; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkImage(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkImage NullHandle = new(); } }