yuzu/src/video_core/renderer_vulkan/vk_sampler_cache.h

30 lines
712 B
C++
Raw Normal View History

// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
2020-03-27 05:33:21 +01:00
#include "video_core/renderer_vulkan/wrapper.h"
#include "video_core/sampler_cache.h"
#include "video_core/textures/texture.h"
namespace Vulkan {
class VKDevice;
2020-03-27 05:33:21 +01:00
class VKSamplerCache final : public VideoCommon::SamplerCache<VkSampler, vk::Sampler> {
public:
explicit VKSamplerCache(const VKDevice& device);
~VKSamplerCache();
protected:
2020-03-27 05:33:21 +01:00
vk::Sampler CreateSampler(const Tegra::Texture::TSCEntry& tsc) const override;
2020-03-27 05:33:21 +01:00
VkSampler ToSamplerType(const vk::Sampler& sampler) const override;
private:
const VKDevice& device;
};
} // namespace Vulkan