namespace Brutal.VulkanApi { /// /// VkSampler - Opaque handle to a sampler object /// /// /// /// VkSampler objects represent the state of an image sampler which is /// used by the implementation to read image data and apply filtering and other /// transformations for the shader. /// /// /// Samplers are represented by VkSampler handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler) /// /// public readonly unsafe struct VkSampler : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Sampler; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkSampler(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkSampler NullHandle = new(); } }