| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsVulkanPrerequisites.h"
- #include "BsTextureManager.h"
- namespace BansheeEngine
- {
- /** @addtogroup Vulkan
- * @{
- */
- /** Handles creation of Vulkan textures. */
- class VulkanTextureManager : public TextureManager
- {
- public:
- /** @copydoc TextureManager::getNativeFormat */
- PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage, bool hwGamma) override;
- protected:
- /** @copydoc TextureManager::createRenderTextureImpl */
- SPtr<RenderTexture> createRenderTextureImpl(const RENDER_TEXTURE_DESC& desc) override;
- };
- /** Handles creation of Vulkan textures. */
- class VulkanTextureCoreManager : public TextureCoreManager
- {
- protected:
- /** @copydoc TextureCoreManager::createTextureInternal */
- SPtr<TextureCore> createTextureInternal(const TEXTURE_DESC& desc,
- const SPtr<PixelData>& initialData = nullptr, GpuDeviceFlags deviceMask = GDF_DEFAULT) override;
- /** @copydoc TextureCoreManager::createRenderTextureInternal */
- SPtr<RenderTextureCore> createRenderTextureInternal(const RENDER_TEXTURE_DESC_CORE& desc,
- GpuDeviceFlags deviceMask = GDF_DEFAULT) override;
- };
- /** @} */
- }
|