namespace Brutal.VulkanApi { /// /// VkBufferView - Opaque handle to a buffer view object /// /// /// /// A buffer view represents a contiguous range of a buffer and a specific /// format to be used to interpret the data. /// Buffer views are used to enable shaders to access buffer contents using /// image operations^. /// In order to create a valid buffer view, the buffer must have been created /// with at least one of the following usage flags: /// /// /// * VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT /// * VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT /// /// /// Buffer views are represented by VkBufferView handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView) /// /// public readonly unsafe struct VkBufferView : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.BufferView; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkBufferView(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkBufferView NullHandle = new(); } }