10 #include <pxr/base/arch/fileSystem.h>
11 #include <pxr/base/plug/plugin.h>
12 #include <pxr/base/plug/thisPlugin.h>
13 #include <pxr/base/tf/envSetting.h>
14 #include <pxr/imaging/hd/rendererPluginRegistry.h>
16 PXR_NAMESPACE_OPEN_SCOPE
18 #ifdef WITH_CYCLES_LOGGING
19 TF_DEFINE_ENV_SETTING(CYCLES_LOGGING,
false,
"Enable Cycles logging")
20 TF_DEFINE_ENV_SETTING(CYCLES_LOGGING_SEVERITY, 1, "Cycles logging verbosity")
25 const PlugPluginPtr plugin = PLUG_THIS_PLUGIN;
27 std::string rootPath = PXR_NS::ArchAbsPath(plugin->GetResourcePath());
30 #ifdef WITH_CYCLES_LOGGING
31 if (TfGetEnvSetting(CYCLES_LOGGING)) {
54 return new HD_CYCLES_NS::HdCyclesDelegate(settingsMap);
59 delete renderDelegate;
68 HdRendererPluginRegistry::Define<PXR_NS::HdCyclesPlugin>();
71 PXR_NAMESPACE_CLOSE_SCOPE
bool IsSupported() const override
PXR_NS::HdRenderDelegate * CreateRenderDelegate() override
~HdCyclesPlugin() override
void DeleteRenderDelegate(PXR_NS::HdRenderDelegate *) override
void util_logging_verbosity_set(int verbosity)
void util_logging_start()
void path_init(const string &path, const string &user_path)
TF_REGISTRY_FUNCTION(TfType)