Blender
V5.0
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
8
9
#pragma once
10
11
#include "
vk_sampler.hh
"
12
13
#include "
BLI_map.hh
"
14
15
namespace
blender::gpu
{
16
22
class
VKSamplers
:
NonCopyable
{
23
VKSampler
sampler_cache_[
GPU_SAMPLER_EXTEND_MODES_COUNT
][
GPU_SAMPLER_EXTEND_MODES_COUNT
]
24
[
GPU_SAMPLER_FILTERING_TYPES_COUNT
];
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
BLI_map.hh
GPU_SAMPLER_FILTERING_TYPES_COUNT
static const int GPU_SAMPLER_FILTERING_TYPES_COUNT
Definition
GPU_texture.hh:314
GPU_SAMPLER_CUSTOM_TYPES_COUNT
#define GPU_SAMPLER_CUSTOM_TYPES_COUNT
Definition
GPU_texture.hh:377
GPU_SAMPLER_EXTEND_MODES_COUNT
#define GPU_SAMPLER_EXTEND_MODES_COUNT
Definition
GPU_texture.hh:340
blender::NonCopyable::NonCopyable
NonCopyable(const NonCopyable &other)=delete
blender::gpu::VKSampler
Definition
vk_sampler.hh:20
blender::gpu::VKSamplers
Definition
vk_samplers.hh:22
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:32
GPUSamplerState
Definition
GPU_texture.hh:419
vk_sampler.hh
Generated on
for Blender by
doxygen
1.16.1