namespace Brutal.VulkanApi { /// /// VkImageView - Opaque handle to an image view object /// /// /// /// Image objects are not directly accessed by pipeline shaders for reading or /// writing image data. /// Instead, image views representing contiguous ranges of the image /// subresources and containing additional metadata are used for that purpose. /// Views must be created on images of compatible types, and must represent a /// valid subset of image subresources. /// /// /// Image views are represented by VkImageView handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView) /// /// public readonly unsafe struct VkImageView : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.ImageView; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkImageView(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkImageView NullHandle = new(); } }