namespace Brutal.VulkanApi { /// /// VkShaderModule - Opaque handle to a shader module object /// /// /// /// Shader modules contain shader code and one or more entry points. /// Shaders are selected from a shader module by specifying an entry point as /// part of pipeline^ creation. /// The stages of a pipeline can use shaders that come from different modules. /// The shader code defining a shader module must be in the SPIR-V format, as /// described by the Vulkan Environment for SPIR-V^ appendix. /// /// /// Shader modules are represented by VkShaderModule handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule) /// /// public readonly unsafe struct VkShaderModule : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.ShaderModule; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkShaderModule(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkShaderModule NullHandle = new(); } }