namespace Brutal.VulkanApi { /// /// VkFramebuffer - Opaque handle to a framebuffer object /// /// /// /// Render passes operate in conjunction with framebuffers. /// Framebuffers represent a collection of specific memory attachments that a /// render pass instance uses. /// /// /// Framebuffers are represented by VkFramebuffer handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer) /// /// public readonly unsafe struct VkFramebuffer : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Framebuffer; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkFramebuffer(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkFramebuffer NullHandle = new(); } }