SpiecsEngine
Loading...
Searching...
No Matches
◆
GetResource()
template<typename T >
std::shared_ptr< T > Spices::Texture::GetResource
(
)
inline
inherited
Get Specific resource, usually is a wrapper of
VulkanImage
.
Template Parameters
T
How 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
}
Spices::Texture::m_Resource
std::any m_Resource
Texture's resource, coule be any kind of type.
Definition
Texture.h:68
Spices
Texture2DCube
Generated on Sun Mar 8 2026 10:24:49 for SpiecsEngine by
1.10.0