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

Add 'register' method to VertexSerializerRegistry #1924

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

FlashyReese
Copy link
Contributor

This commit introduces a new 'register' method to the VertexSerializerRegistry interface, along with its implementation in the VertexSerializerRegistryImpl class. The 'register' method allows registering a custom VertexSerializer for a specific pair of source and destination VertexFormatDescriptions. When called, it creates an identifier based on the input formats and checks for an existing serializer in the cache. If a serializer already exists for the given formats, an IllegalArgumentException is thrown. Additionally, the 'serializer' parameter is validated to ensure it is not null.

This new functionality provides greater flexibility for developers to define and use custom VertexSerializers, facilitating efficient vertex data transformations during rendering.

This commit introduces a new 'register' method to the VertexSerializerRegistry interface, along with its implementation in the VertexSerializerRegistryImpl class. The 'register' method allows registering a custom VertexSerializer for a specific pair of source and destination VertexFormatDescriptions. When called, it creates an identifier based on the input formats and checks for an existing serializer in the cache. If a serializer already exists for the given formats, an IllegalArgumentException is thrown. Additionally, the 'serializer' parameter is validated to ensure it is not null.

This new functionality provides greater flexibility for developers to define and use custom VertexSerializers, facilitating efficient vertex data transformations during rendering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant