24 #ifndef PXR_IMAGING_HD_RESOURCE_REGISTRY_H 25 #define PXR_IMAGING_HD_RESOURCE_REGISTRY_H 28 #include "pxr/imaging/hd/api.h" 29 #include "pxr/imaging/hd/version.h" 31 #include "pxr/imaging/hd/perfLog.h" 33 #include "pxr/imaging/hf/perfLog.h" 41 PXR_NAMESPACE_OPEN_SCOPE
44 using HdResourceRegistrySharedPtr = std::shared_ptr<class HdResourceRegistry>;
52 HF_MALLOC_TAG_NEW(
"new HdResourceRegistry");
85 std::string
const& path);
108 PXR_NAMESPACE_CLOSE_SCOPE
110 #endif //PXR_IMAGING_HD_RESOURCE_REGISTRY_H Manage a single instance of an object.
A map with string keys and VtValue values.
Token for efficient comparison, assignment, and hashing of known strings.
HD_API void GarbageCollect()
cleanup all buffers and remove if empty
virtual HD_API void ReloadResource(TfToken const &resourceType, std::string const &path)
Generic method to inform RenderDelegate a resource needs to be reloaded.
A central registry for resources.
virtual HD_API void _GarbageCollect()
Hooks for derived registries to perform additional GC when GarbageCollect() is invoked.
HD_API void Commit()
Commits all in-flight source data.
virtual HD_API VtDictionary GetResourceAllocation() const
Returns a report of resource allocation by role in bytes and a summary total allocation of GPU memory...
size_t TextureKey
Globally unique id for texture, see HdRenderIndex::GetTextureKey() for details.
virtual HD_API void InvalidateShaderRegistry()
Invalidate any shaders registered with this registry.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
virtual HD_API void _Commit()
A hook for derived registries to perform additional resource commits.