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

Improved osd patch basis compatibility #1321

Merged

Conversation

davidgyu
Copy link
Member

@davidgyu davidgyu commented Sep 13, 2023

Submitted as two commits for a cleaner commit history.

--

Reorganized osd/patchBasis and osd/patchBasisTypes

Folded osd/patchBasisCommon.h and osd/patchBasisCommonEval.h into the
single header file osd/patchBasis.h and renamed osd/PatchBasisCommonTypes.h
to osd/patchBasisTypes.h

Moved these into the OpenSubdiv::Osd namespace when compiled for C++ and
added a brief comment describing the intended use cases for this code.

--

Installed osd/patchBasis.h and osd/patchBasisTypes.h

Providing these as public headers in opensubdiv/osd allows client code
to implement evaluation kernels in their own TBB, CUDA, OMP, GCD, etc.
code without needing an implementation within the osd codebase.

Tested with C++, CUDA, and oneTBB client kernels.

Fixes #938 #1153

Folded osd/patchBasisCommon.h and osd/patchBasisCommonEval.h into the
single header file osd/patchBasis.h and renamed osd/PatchBasisCommonTypes.h
to osd/patchBasisTypes.h

Moved these into the OpenSubdiv::Osd namespace when compiled for C++ and
added a brief comment describing the intended use cases for this code.
Providing these as public headers in opensubdiv/osd allows client code
to implement evaluation kernels in their own TBB, CUDA, OMP, GCD, etc.
code without needing an implementation within the osd codebase.

Tested with C++, CUDA, and oneTBB client kernels.
@davidgyu davidgyu force-pushed the dev_osd_patch_basis_compatibility branch from 48be18c to be4c718 Compare September 13, 2023 23:48
@davidgyu
Copy link
Member Author

Reviewed internally along with additional testing.

@davidgyu davidgyu merged commit b59ad84 into PixarAnimationStudios:dev Sep 14, 2023
@davidgyu davidgyu deleted the dev_osd_patch_basis_compatibility branch September 14, 2023 04:56
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.

1 participant