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:
parent
cbf3bd0efc
commit
945579c203
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user