HDK
|
#include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/cameraUtil/conformWindow.h"
#include "pxr/base/tf/declarePtrs.h"
#include "pxr/usd/sdf/path.h"
#include <iosfwd>
#include <memory>
#include <string>
#include <unordered_map>
Go to the source code of this file.
Classes | |
class | HdUtils::RenderInstanceTracker< T > |
Namespaces | |
HdUtils | |
Functions | |
PXR_NAMESPACE_OPEN_SCOPE | TF_DECLARE_REF_PTRS (HdSceneIndexBase) |
RenderInstanceTracker facility below provides a simple way | |
A simple facility to associate an application object managed by std::shared_ptr with a render instance id. This is useful when using the scene index callback registration facility. The callback is registered only once, but may be invoked each time the scene index graph is created (this currently happens during the render index construction). Futhermore, an application may spawn several render index instances and thus the (same) callback may be invoked several times, necessitating a way to map the callback back to the associated scene index instance. The to register, unregister and query an object that is tied to a render instance id, which is provided as a callback argument.
The UnregisterInstance method is typically invoked prior to render index destruction.
| |
HD_API bool | HdUtils::HasActiveRenderSettingsPrim (const HdSceneIndexBaseRefPtr &si, SdfPath *primPath=nullptr) |
HD_API CameraUtilConformWindowPolicy | HdUtils::ToConformWindowPolicy (const TfToken &token) |
HD_API void | HdUtils::PrintSceneIndex (std::ostream &out, const HdSceneIndexBaseRefPtr &si, const SdfPath &rootPath=SdfPath::AbsoluteRootPath()) |
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS | ( | HdSceneIndexBase | ) |