SamplerImpl.h 713 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Gr/Sampler.h>
  7. #include <AnKi/Gr/Vulkan/VulkanObject.h>
  8. #include <AnKi/Gr/Vulkan/SamplerFactory.h>
  9. namespace anki {
  10. /// @addtogroup vulkan
  11. /// @{
  12. /// Vulkan implementation of Sampler.
  13. class SamplerImpl final : public Sampler, public VulkanObject<Sampler, SamplerImpl>
  14. {
  15. public:
  16. MicroSamplerPtr m_sampler;
  17. SamplerImpl(GrManager* manager, CString name)
  18. : Sampler(manager, name)
  19. {
  20. }
  21. ~SamplerImpl()
  22. {
  23. }
  24. ANKI_USE_RESULT Error init(const SamplerInitInfo& init);
  25. };
  26. /// @}
  27. } // end namespace anki