Skip to content

Commit d420e9e

Browse files
RenderDeviceWithCache: added GetCache method
1 parent 0eb5305 commit d420e9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Graphics/GraphicsTools/interface/RenderStateCache.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ class RenderDeviceWithCache : public RenderDeviceX<ThrowOnError>
101101
return CreateTilePipelineState(CreateInfo);
102102
}
103103

104+
IRenderStateCache* GetCache() const
105+
{
106+
return m_pCache.RawPtr<IRenderStateCache>();
107+
}
108+
104109
private:
105110
template <typename ObjectType, typename CreateMethodType, typename... CreateArgsType>
106111
RefCntAutoPtr<ObjectType> UnpackCachedObject(const char* ObjectTypeName, const char* ObjectName, CreateMethodType Create, CreateArgsType&&... Args) noexcept(!ThrowOnError)

0 commit comments

Comments
 (0)