![]() |
VenomEngine
Cross-Platform Modern Graphics Engine
|
Base class for cached resource holders. More...
#include <GraphicsPluginObject.h>
Inheritance diagram for venom::common::GraphicsCachedResourceHolder:Public Member Functions | |
| template<typename T> | |
| T * | As () |
| void | SetResource (const GraphicsCachedResourceHolder &resource) |
| void | SetResource (const SPtr< GraphicsCachedResource > &resource) |
| const vc::String & | GetResourceName () const |
| const vc::String & | GetResourceShortName () const |
Protected Member Functions | |
| const SPtr< GraphicsCachedResource > & | _GetResourceToCache () const |
| SPtr< GraphicsCachedResource > & | _GetResourceToCache () |
| void | _LoadFromCache (const SPtr< GraphicsCachedResource > &cache) |
| virtual void | _ResetResource ()=0 |
| Resets the resource, should be implemented by the final class, i.e. VulkanTextureResource. | |
Protected Attributes | |
| SPtr< GraphicsCachedResource > | _resource |
Base class for cached resource holders.
|
protectedpure virtual |
Resets the resource, should be implemented by the final class, i.e. VulkanTextureResource.
Implemented in venom::vulkan::VulkanModel, venom::vulkan::VulkanShaderPipeline, and venom::vulkan::VulkanTexture.