vulkan: Add a core vk_sampler struct
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 26 Jul 2023 16:11:48 +0000 (11:11 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 31 Jul 2023 17:01:42 +0000 (17:01 +0000)
commit8de38aded5f36d8b7de0b79dfb65270531460404
tree94fcd2e389f2ebe75e24537314791014188ec584
parent6ff0b430d5c90cdcf368af674449694998af0dfa
vulkan: Add a core vk_sampler struct

Unlike some other core structs, I didn't bother to copy the entire
VkSamplerCreateInfo into the sampler.  There isn't typcially a lot of
pre-processing we can or need to do here and we may as well keep the
struct small for now.  It does, however, handle most things involving
chain-in structs.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24335>
src/vulkan/runtime/vk_sampler.c
src/vulkan/runtime/vk_sampler.h