SpiecsEngine
 
Loading...
Searching...
No Matches

◆ GetResource()

template<typename T >
std::shared_ptr< T > Spices::Texture::GetResource ( )
inlineinherited

Get Specific resource, usually is a wrapper of VulkanImage.

Template Parameters
THow to get the resource.
Returns
Returns the pointer of T.
Todo
Only returns T.

Definition at line 78 of file Texture.h.

79 {
80 return std::any_cast<std::shared_ptr<T>>(m_Resource);
81 }
std::any m_Resource
Texture's resource, coule be any kind of type.
Definition Texture.h:68