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

VertexLoader: Remove "too many initializer values" workaround functions #11160

Conversation

Pokechu22
Copy link
Contributor

I originally added these in 2b1d103 (#9718), for both the TPipelineFunction and the size. The size was moved into the header in fdcd2b7 (#11066) (making the size functions obsolete), but it seems that the functions themselves are no longer needed now.

I think I didn't use this approach before because it would have required ComponentFormatTable and ComponentCountRow to be templated, which would end up resulting in lines that were too long and thus wrapped in awkward places. (I think they didn't get inferred properly.) Now that we only need TPipelineFunction, the templating is not needed, and this ends up being a more readable version of the version with the wrapper functions.

This PR replaces #11159.

I originally added these in 2b1d103, for both the TPipelineFunction and the size. The size was moved into the header in fdcd2b7 (making the size functions obsolete), but it seems that the functions themselves are no longer needed now.

I think I didn't use this approach before because it would have required ComponentFormatTable and ComponentCountRow to be templated, which would end up resulting in lines that were too long and thus wrapped in awkward places. (I *think* they didn't get inferred properly.) Now that we only need TPipelineFunction, the templating is not needed, and this ends up being a more readable version of the version with the wrapper functions.
@Pokechu22 Pokechu22 force-pushed the vertexloader-no-initializer-workaround-functions branch from 82ef24d to 581a575 Compare October 25, 2022 22:30
@Tilka Tilka merged commit d367b3e into dolphin-emu:master Oct 26, 2022
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants