Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usdBakeMtlx: absorb TextureBakerGlsl API change to fix compilation with MaterialX 1.38.7 #2402

Conversation

mattyjams
Copy link
Contributor

Description of Change(s)

As part of the work to support Metal in MaterialX, the API for creating a GLSL-based texture baker was modified in 1.38.7. This change ensures that the correct type name is used based on the MaterialX version being used.

See more detail in the MaterialX commit here:
AcademySoftwareFoundation/MaterialX@6f8b3bd

I've verified that the unit tests pass when USD is built against MaterialX 1.38.7, but I've admittedly not done any other correctness verification. This change only addresses the compilation failure.

  • [ X ] I have verified that all unit tests pass with the proposed changes
  • [ X ] I have submitted a signed Contributor License Agreement

…th MaterialX 1.38.7

As part of the work to support Metal in MaterialX, the API for creating a
GLSL-based texture baker was modified in 1.38.7. This change ensures that the
correct type name is used based on the MaterialX version being used.

See more detail in the MaterialX commit here:
AcademySoftwareFoundation/MaterialX@6f8b3bd
@sunyab
Copy link
Contributor

sunyab commented Apr 24, 2023

Filed as internal issue #USD-8266

pixar-oss pushed a commit that referenced this pull request May 19, 2023
- Makes the MaterialX shader generator polymorphic and implements the Metal based functionality.
- Metal versions 2.2 and earlier don't return upon usage of the discard keyword. Improve discard handling to pass MaterialX unit tests on Metal.
- The API for creating a GLSL-based texture baker was modified in 1.38.7. This change ensures that the correct type name is used.

Based on github pull request #1965, which was authored by Pablo Delgado
Based on github pull request #2324, which was Co-authored by Morteza Mostajabodaveh & Jon Creighton
Based on github pull request #2402, which was authored by Matt Johnson

Fixes #1965
Fixes #2216
Fixes #2324
Fixes #2402

(Internal change: 2275890)
@mattyjams
Copy link
Contributor Author

This was incorporated into 5dab6e0 that was recently pushed to the dev branch. Thanks @klucknav!

Closing this out...

@mattyjams mattyjams closed this Jun 1, 2023
@mattyjams mattyjams deleted the pr/fix_usdBakeMtlx_compilation_with_MaterialX_1_38_7 branch June 1, 2023 15:43
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.

2 participants