Fix Cycles build issue with USD 23.02

HdRenderDelegate got a change with the interface, adding gpuSupported. It
currently is just a dummy implementation without checking for anything
GPU-related.

Differential Revision: https://developer.blender.org/D17207
This commit is contained in:
Alex Fuller 2023-02-06 18:29:31 +01:00 committed by Brecht Van Lommel
parent cbf3bd0efc
commit 945579c203
2 changed files with 11 additions and 0 deletions

@ -37,10 +37,17 @@ HdCyclesPlugin::HdCyclesPlugin()
HdCyclesPlugin::~HdCyclesPlugin() {}
#if PXR_VERSION < 2302
bool HdCyclesPlugin::IsSupported() const
{
return true;
}
#else
bool HdCyclesPlugin::IsSupported(bool gpuEnabled) const
{
return true;
}
#endif
HdRenderDelegate *HdCyclesPlugin::CreateRenderDelegate()
{

@ -14,7 +14,11 @@ class HdCyclesPlugin final : public PXR_NS::HdRendererPlugin {
HdCyclesPlugin();
~HdCyclesPlugin() override;
#if PXR_VERSION < 2302
bool IsSupported() const override;
#else
bool IsSupported(bool gpuEnabled) const override;
#endif
PXR_NS::HdRenderDelegate *CreateRenderDelegate() override;
PXR_NS::HdRenderDelegate *CreateRenderDelegate(const PXR_NS::HdRenderSettingsMap &) override;