24 #ifndef PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H 25 #define PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H 29 #include "pxr/imaging/hd/dataSourceLocator.h" 30 #include "pxr/imaging/hd/types.h" 32 PXR_NAMESPACE_OPEN_SCOPE
43 static void RprimDirtyBitsToLocatorSet(
TfToken const& primType,
46 static void SprimDirtyBitsToLocatorSet(
TfToken const& primType,
49 static void BprimDirtyBitsToLocatorSet(
TfToken const& primType,
52 static void InstancerDirtyBitsToLocatorSet(
TfToken const& primType,
57 static HdDirtyBits RprimLocatorSetToDirtyBits(
TfToken const& primType,
60 static HdDirtyBits SprimLocatorSetToDirtyBits(
TfToken const& primType,
63 static HdDirtyBits BprimLocatorSetToDirtyBits(
TfToken const& primType,
66 static HdDirtyBits InstancerLocatorSetToDirtyBits(
TfToken const& primType,
69 using LocatorSetToDirtyBitsFnc =
72 using DirtyBitsToLocatorSetFnc =
80 LocatorSetToDirtyBitsFnc sToBFnc, DirtyBitsToLocatorSetFnc bToSFnc);
84 PXR_NAMESPACE_CLOSE_SCOPE
86 #endif // PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H A set of optimized functions for translating between dirty bits and datasource locators for different...
Token for efficient comparison, assignment, and hashing of known strings.
Represents a set of data source locators closed under descendancy.
static HD_API void RegisterTranslatorsForCustomSprimType(TfToken const &primType, LocatorSetToDirtyBitsFnc sToBFnc, DirtyBitsToLocatorSetFnc bToSFnc)
Allows for customization of translation for unknown (to the system) sprim types.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...