SamplerImpl.cpp 465 B

1234567891011121314151617
  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. #include <AnKi/Gr/Vulkan/SamplerImpl.h>
  6. #include <AnKi/Gr/Texture.h>
  7. #include <AnKi/Gr/Vulkan/GrManagerImpl.h>
  8. namespace anki {
  9. Error SamplerImpl::init(const SamplerInitInfo& inf)
  10. {
  11. return getGrManagerImpl().getSamplerFactory().newInstance(inf, m_sampler);
  12. }
  13. } // end namespace anki