// ============================================= // Aster: sampler.h // Copyright (c) 2020-2025 Anish Bhobe // ============================================= #pragma once #include "global.h" struct Device; struct Sampler final { Device const *m_Device = nullptr; vk::Sampler m_Sampler = nullptr; [[nodiscard]] bool IsValid() const { return m_Sampler; } // Constructors Sampler(Device const *device, vk::SamplerCreateInfo const &samplerCreateInfo, cstr name); ~Sampler(); Sampler(Sampler &&other) noexcept; Sampler &operator=(Sampler &&other) noexcept; DISALLOW_COPY_AND_ASSIGN(Sampler); };