7#ifndef PXR_IMAGING_HD_PLUGIN_RENDERER_UNIQUE_HANDLE_H
8#define PXR_IMAGING_HD_PLUGIN_RENDERER_UNIQUE_HANDLE_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/rendererPluginHandle.h"
16PXR_NAMESPACE_OPEN_SCOPE
49 HdRenderer *Get()
const {
return _renderer.get(); }
51 HdRenderer *operator->()
const {
return _renderer.get(); }
52 HdRenderer &operator*()
const {
return *_renderer; }
55 explicit operator bool()
const {
return bool(_renderer); }
66 std::unique_ptr<HdRenderer> renderer);
69 std::unique_ptr<HdRenderer> _renderer;
72PXR_NAMESPACE_CLOSE_SCOPE
A handle for a renderer that was created by a renderer plugin.
HD_API TfToken GetPluginId() const
Id of the plugin used to create the renderer.
A handle for HdRendererPlugin also storing the plugin id.
This class defines a renderer plugin interface for Hydra.
Token for efficient comparison, assignment, and hashing of known strings.