Blender V4.3
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
9#pragma once
10
11#include "vk_sampler.hh"
12#include "vk_samplers.hh"
13
14#include "BLI_map.hh"
15
16namespace blender::gpu {
17
26 VKSampler custom_sampler_cache_[GPU_SAMPLER_CUSTOM_TYPES_COUNT];
27
28 public:
29 void init();
30 void free();
31
32 const VKSampler &get(const GPUSamplerState &sampler_state) const;
33};
34
35} // namespace blender::gpu
static const int GPU_SAMPLER_FILTERING_TYPES_COUNT
#define GPU_SAMPLER_CUSTOM_TYPES_COUNT
#define GPU_SAMPLER_EXTEND_MODES_COUNT
const VKSampler & get(const GPUSamplerState &sampler_state) const