Blender V5.0
vk_samplers.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "vk_sampler.hh"
12
13#include "BLI_map.hh"
14
15namespace blender::gpu {
16
25 VKSampler custom_sampler_cache_[GPU_SAMPLER_CUSTOM_TYPES_COUNT];
26
27 public:
28 void init();
29 void free();
30
31 const VKSampler &get(const GPUSamplerState &sampler_state) const;
32};
33
34} // namespace blender::gpu
static const int GPU_SAMPLER_FILTERING_TYPES_COUNT
#define GPU_SAMPLER_CUSTOM_TYPES_COUNT
#define GPU_SAMPLER_EXTEND_MODES_COUNT
NonCopyable(const NonCopyable &other)=delete
const VKSampler & get(const GPUSamplerState &sampler_state) const