24 #ifndef PXR_IMAGING_HD_PLUGIN_RENDER_DELEGATE_UNIQUE_HANDLE_H
25 #define PXR_IMAGING_HD_PLUGIN_RENDER_DELEGATE_UNIQUE_HANDLE_H
52 : _delegate(nullptr) { }
68 const std::nullptr_t &);
77 explicit operator bool()
const {
return _delegate; }
88 : _plugin(plugin), _delegate(delegate) { }
HdPluginRenderDelegateUniqueHandle(const std::nullptr_t &)
HdPluginRenderDelegateUniqueHandle()
HD_API TfToken GetPluginId() const
Get the id of the plugin used to create render delegate.
HdRenderDelegate & operator*() const
HD_API HdPluginRenderDelegateUniqueHandle & operator=(HdPluginRenderDelegateUniqueHandle &&)
Transfer ownership.
HD_API ~HdPluginRenderDelegateUniqueHandle()
HdRenderDelegate * Get() const
Get render delegate.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
HdRenderDelegate * operator->() const