mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-02-06 14:36:54 +00:00
35 lines
717 B
C++
35 lines
717 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "video_core/amdgpu/resource.h"
|
|
#include "video_core/renderer_vulkan/vk_common.h"
|
|
|
|
namespace Vulkan {
|
|
class Instance;
|
|
}
|
|
|
|
namespace VideoCore {
|
|
|
|
class Sampler {
|
|
public:
|
|
explicit Sampler(const Vulkan::Instance& instance, const AmdGpu::Sampler& sampler);
|
|
~Sampler();
|
|
|
|
Sampler(const Sampler&) = delete;
|
|
Sampler& operator=(const Sampler&) = delete;
|
|
|
|
Sampler(Sampler&&) = default;
|
|
Sampler& operator=(Sampler&&) = default;
|
|
|
|
vk::Sampler Handle() const noexcept {
|
|
return *handle;
|
|
}
|
|
|
|
private:
|
|
vk::UniqueSampler handle;
|
|
};
|
|
|
|
} // namespace VideoCore
|