namespace Brutal.VulkanApi { /// /// VkPipelineBinaryKHR - Opaque handle to a pipeline binary object /// /// /// /// Pipeline binary objects allow the result of pipeline construction to be /// reused between pipelines and between runs of an application. /// Reuse is achieved by extracting pipeline binaries from a VkPipeline /// object, associating them with a corresponding VkPipelineBinaryKeyKHR /// and then adding a VkPipelineBinaryInfoKHR to the pNext chain of /// any stext:Vk*PipelineCreateInfo when creating a pipeline. /// Pipeline binaries can be reused between runs by extracting /// VkPipelineBinaryDataKHR from VkPipelineBinaryKHR objects, saving /// the contents, and then using them to create a VkPipelineBinaryKHR /// object on subsequent runs. /// /// /// When creating a pipeline that includes VkPipelineBinaryInfoKHR in the /// pNext chain, or has the /// VK_PIPELINE_CREATE_2_CAPTURE_DATA_BIT_KHR flag set, the use of /// VkPipelineCache objects is not allowed. /// /// /// Pipeline binary objects are represented by VkPipelineBinaryKHR /// handles: /// /// /// // Provided by VK_KHR_pipeline_binary /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineBinaryKHR) /// /// public readonly unsafe struct VkPipelineBinaryKHR : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.PipelineBinaryKHR; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkPipelineBinaryKHR(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkPipelineBinaryKHR NullHandle = new(); } }