vkDestroySampler
vkDestroySampler is a Vulkan API function used to release resources associated with a VkSampler object. When a VkSampler object is no longer needed, calling this function ensures that the associated memory and other system resources are deallocated and made available for reuse. This is crucial for preventing memory leaks and maintaining the efficient operation of a Vulkan application.
The function takes two arguments: a VkDevice, representing the logical device with which the sampler was created,
The caller is responsible for managing the lifetime of VkSampler objects. Typically, a sampler is created using