Texture2D Class. This class defines the basic behaves of texture2D. More...
#include <Texture2D.h>
Public Member Functions | |
| Texture2D ()=default | |
| Constructor Function. | |
| Texture2D (const RendererResourceCreateInfo &info) | |
| Constructor Function. Used for create render resource. | |
| Texture2D (const std::string &path) | |
| Constructor Function. Init class variable, load date immediately. Usually call it. | |
| virtual | ~Texture2D () override=default |
| Destructor Function. | |
| template<typename T > | |
| std::shared_ptr< T > | GetResource () |
| Get Specific resource, usually is a wrapper of VulkanImage. | |
Protected Attributes | |
| std::any | m_Resource |
| Texture's resource, coule be any kind of type. | |
| std::string | m_ResourcePath |
| Texture's path in disk. | |
Friends | |
| class | TextureLoader |
Texture2D Class. This class defines the basic behaves of texture2D.
Definition at line 19 of file Texture2D.h.