Skip to content

Commit

Permalink
hdGatling: enable parallel processing of prims
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Dec 7, 2024
1 parent fd2d4cb commit 3f8e8e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/hdGatling/renderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,13 @@ TfTokenVector HdGatlingRenderDelegate::GetShaderSourceTypes() const
return TfTokenVector{ HdGatlingSourceTypes->mtlx, HdGatlingSourceTypes->mdl };
}

#if PXR_VERSION >= 2408
bool HdGatlingRenderDelegate::IsParallelSyncEnabled(const TfToken& primType) const
{
return primType == HdPrimTypeTokens->mesh ||
primType == HdPrimTypeTokens->material ||
primType == HdPrimTypeTokens->instancer;
}
#endif

PXR_NAMESPACE_CLOSE_SCOPE
4 changes: 4 additions & 0 deletions src/hdGatling/renderDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ class HdGatlingRenderDelegate final : public HdRenderDelegate

TfTokenVector GetShaderSourceTypes() const override;

#if PXR_VERSION >= 2408
bool IsParallelSyncEnabled(const TfToken& primType) const override;
#endif

private:
const MaterialNetworkCompiler& _materialNetworkCompiler;
const std::string _resourcePath;
Expand Down

0 comments on commit 3f8e8e4

Please sign in to comment.