Blender
V4.3
source
blender
gpu
vulkan
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
16
namespace
blender::gpu
{
17
23
class
VKSamplers
:
NonCopyable
{
24
VKSampler
sampler_cache_[
GPU_SAMPLER_EXTEND_MODES_COUNT
][
GPU_SAMPLER_EXTEND_MODES_COUNT
]
25
[
GPU_SAMPLER_FILTERING_TYPES_COUNT
];
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
BLI_map.hh
GPU_SAMPLER_FILTERING_TYPES_COUNT
static const int GPU_SAMPLER_FILTERING_TYPES_COUNT
Definition
GPU_texture.hh:69
GPU_SAMPLER_CUSTOM_TYPES_COUNT
#define GPU_SAMPLER_CUSTOM_TYPES_COUNT
Definition
GPU_texture.hh:132
GPU_SAMPLER_EXTEND_MODES_COUNT
#define GPU_SAMPLER_EXTEND_MODES_COUNT
Definition
GPU_texture.hh:95
blender::NonCopyable
Definition
BLI_utility_mixins.hh:16
blender::gpu::VKSampler
Definition
vk_sampler.hh:20
blender::gpu::VKSamplers
Definition
vk_samplers.hh:23
blender::gpu::VKSamplers::get
const VKSampler & get(const GPUSamplerState &sampler_state) const
Definition
vk_samplers.cc:48
blender::gpu::VKSamplers::init
void init()
Definition
vk_samplers.cc:13
blender::gpu::VKSamplers::free
void free()
Definition
vk_samplers.cc:34
blender::gpu
Definition
blf_internal_types.hh:23
GPUSamplerState
Definition
GPU_texture.hh:174
vk_sampler.hh
vk_samplers.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0