BsD3D11TextureManager.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsD3D11Prerequisites.h"
  5. #include "BsTextureManager.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup D3D11
  9. * @{
  10. */
  11. /** Handles creation of DirectX 11 textures. */
  12. class BS_D3D11_EXPORT D3D11TextureManager : public TextureManager
  13. {
  14. public:
  15. /** @copydoc TextureManager::getNativeFormat */
  16. PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage, bool hwGamma) override;
  17. protected:
  18. /** @copydoc TextureManager::createRenderTextureImpl */
  19. SPtr<RenderTexture> createRenderTextureImpl(const RENDER_TEXTURE_DESC& desc) override;
  20. /** @copydoc TextureManager::createMultiRenderTextureImpl */
  21. SPtr<MultiRenderTexture> createMultiRenderTextureImpl(const MULTI_RENDER_TEXTURE_DESC& desc) override;
  22. };
  23. /** Handles creation of DirectX 11 textures. */
  24. class BS_D3D11_EXPORT D3D11TextureCoreManager : public TextureCoreManager
  25. {
  26. protected:
  27. /** @copydoc TextureCoreManager::createTextureInternal */
  28. SPtr<TextureCore> createTextureInternal(TextureType texType, UINT32 width, UINT32 height, UINT32 depth,
  29. int numMips, PixelFormat format, int usage = TU_DEFAULT, bool hwGammaCorrection = false,
  30. UINT32 multisampleCount = 0, UINT32 numArraySlices = 1, const SPtr<PixelData>& initialData = nullptr) override;
  31. /** @copydoc TextureCoreManager::createRenderTextureInternal */
  32. SPtr<RenderTextureCore> createRenderTextureInternal(const RENDER_TEXTURE_CORE_DESC& desc) override;
  33. /** @copydoc TextureCoreManager::createMultiRenderTextureInternal */
  34. SPtr<MultiRenderTextureCore> createMultiRenderTextureInternal(const MULTI_RENDER_TEXTURE_CORE_DESC& desc) override;
  35. };
  36. /** @} */
  37. }