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

Type description improvements #2176

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

niklasharrysson
Copy link
Contributor

This change list is an overhaul of the type system in shader generation.

Improvements include:

  • Removing the singleton pattern for TypeDesc storage and access, making the type system thread safe.
  • Improved handling of TypeDesc internal data, supporting any amount of data for the future, while keeping the class size minimal.
  • Handling of re-registration of type descriptions.
  • Support for keeping type descriptions alive after the lifetime of ShaderGenerator and GenContext. For applications that holds/uses the ShadePort reflection data that is generated by shader generation, even after the ShaderGenerator itself is destroyed. (To do this an application can create and pass in an external TypeSystem).

Co-work with @ld-kerley

@niklasharrysson
Copy link
Contributor Author

This PR includes and replaces #2107, which can be closed if this PR is approved.

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