Files
test2/source/blender/gpu/vulkan/vk_samplers.hh
Jeroen Bakker 6785c5e3b9 Cleanup: Vulkan: incorrect include statement
vk_samplers.hh included itself
2025-04-08 09:35:41 +02:00

35 lines
719 B
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*/
#pragma once
#include "vk_sampler.hh"
#include "BLI_map.hh"
namespace blender::gpu {
/**
* Collection of samplers.
*
* Samplers are device owned and can be shared between contexts.
*/
class VKSamplers : NonCopyable {
VKSampler sampler_cache_[GPU_SAMPLER_EXTEND_MODES_COUNT][GPU_SAMPLER_EXTEND_MODES_COUNT]
[GPU_SAMPLER_FILTERING_TYPES_COUNT];
VKSampler custom_sampler_cache_[GPU_SAMPLER_CUSTOM_TYPES_COUNT];
public:
void init();
void free();
const VKSampler &get(const GPUSamplerState &sampler_state) const;
};
} // namespace blender::gpu