namespace Brutal.VulkanApi { /// /// VkBuffer - Opaque handle to a buffer object /// /// /// /// Buffers represent linear arrays of data which are used for various purposes /// by binding them to a graphics or compute pipeline via descriptor sets or /// certain commands, or by directly specifying them as parameters to certain /// commands. /// /// /// Buffers are represented by VkBuffer handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer) /// /// public readonly unsafe struct VkBuffer : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Buffer; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkBuffer(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkBuffer NullHandle = new(); } }