Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant