Skip to content

Restrict optimized BSDF graphs to hardware targets#2539

Merged
jstone-lucasfilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_target_graph_optim
Sep 2, 2025
Merged

Restrict optimized BSDF graphs to hardware targets#2539
jstone-lucasfilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_target_graph_optim

Conversation

@jstone-lucasfilm
Copy link
Copy Markdown
Member

This changelist restricts the optimized BSDF graphs for Standard Surface, glTF PBR, and OpenPBR Surface to hardware shading targets, falling back to the original unoptimized graphs on other targets.

The optimized graphs now live within a libraries/bxdf/genglsl folder with a glsl target assignment, and the generic graphs in libraries/bxdf have been restored to their pre-optimized versions.

In the future, we're hoping to move in the direction of automated optimization of shading model graphs, which would allow each renderer to opt in or out of this category of optimization through GenOptions settings.

This changelist restricts the optimized BSDF graphs for Standard Surface, glTF PBR, and OpenPBR Surface to hardware shading targets, falling back to the original unoptimized graphs on other targets.

The optimized graphs now live within a `libraries/bxdf/genglsl` folder with a `glsl` target assignment, and the generic graphs in `libraries/bxdf` have been restored to their pre-optimized versions.

In the future, we're hoping to move in the direction of automated optimization of shading model graphs, which would allow each renderer to opt in or out of this category of optimization through GenOptions settings.
@jstone-lucasfilm
Copy link
Copy Markdown
Member Author

GitHub doesn't let me yet add @krohmerNV as a formal reviewer, so I'm CC'ing him here in the comments.

@krohmerNV
Copy link
Copy Markdown
Contributor

I like that approach. For intermediate solution it's perfect.
I tried to same pattern with OpenPBR layering changes in #2215 and there it works good as well.

Copy link
Copy Markdown
Contributor

@ld-kerley ld-kerley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks neat and tidy to me - thanks for putting this together

@jstone-lucasfilm jstone-lucasfilm merged commit 50cee47 into AcademySoftwareFoundation:main Sep 2, 2025
32 checks passed
@jstone-lucasfilm jstone-lucasfilm deleted the dev_target_graph_optim branch September 2, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants