| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsVulkanPrerequisites.h"
- #include "BsTexture.h"
- #include "BsRenderTexture.h"
- namespace bs
- {
- /** @addtogroup Vulkan
- * @{
- */
- class VulkanRenderTexture;
- /**
- * Vulkan implementation of a render texture.
- *
- * @note Core thread only.
- */
- class VulkanRenderTextureCore : public RenderTextureCore
- {
- public:
- VulkanRenderTextureCore(const RENDER_TEXTURE_DESC_CORE& desc, GpuDeviceFlags deviceMask);
- virtual ~VulkanRenderTextureCore() { }
- /** @copydoc RenderTextureCore::getCustomAttribute */
- void getCustomAttribute(const String& name, void* data) const override;
- protected:
- /** @copydoc RenderTextureCore::getProperties */
- const RenderTargetProperties& getPropertiesInternal() const override { return mProperties; }
- RenderTextureProperties mProperties;
- };
- /**
- * Vulkan implementation of a render texture.
- *
- * @note Sim thread only.
- */
- class VulkanRenderTexture : public RenderTexture
- {
- public:
- virtual ~VulkanRenderTexture() { }
- protected:
- friend class VulkanTextureManager;
- VulkanRenderTexture(const RENDER_TEXTURE_DESC& desc);
- /** @copydoc RenderTexture::getProperties */
- const RenderTargetProperties& getPropertiesInternal() const override { return mProperties; }
- RenderTextureProperties mProperties;
- };
- /** @} */
- }
|