SamplerImpl.h 713 B

12345678910111213141516171819202122232425262728293031323334353637
  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. {
  11. /// @addtogroup vulkan
  12. /// @{
  13. /// Vulkan implementation of Sampler.
  14. class SamplerImpl final : public Sampler, public VulkanObject<Sampler, SamplerImpl>
  15. {
  16. public:
  17. MicroSamplerPtr m_sampler;
  18. SamplerImpl(GrManager* manager, CString name)
  19. : Sampler(manager, name)
  20. {
  21. }
  22. ~SamplerImpl()
  23. {
  24. }
  25. ANKI_USE_RESULT Error init(const SamplerInitInfo& init);
  26. };
  27. /// @}
  28. } // end namespace anki