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

backend: xrender: small refactoring #1208

Merged

Conversation

absolutelynothelix
Copy link
Collaborator

i'm thinking about prefixing everything with xr_ instead of xrender_ as it's a nice and short abbreviation just like vk for vulkan 🤔

backend: xrender: drop the leading underscore from structure names

as requested on the discord server. this also addresses clang-tidy
issues.

backend: xrender: prefer explicit casts

explicit casts are preferred at least according to the discussion in
the #343. this also makes the xrender backend's code consistent with the
other backends' code.

backend: xrender: prefix backend-specific function names with xrender_

and sort the xrender_ops structure in the order backend operations are
declared in the backend_operations structure.

this makes the xrender backend's code consistent with the other
backends' code and reduces the risk of collisions because some backend
operation names are quite simple (e.g. init, deinit, fill, etc.).

as requested on the discord server. this also addresses clang-tidy
issues.
explicit casts are preferred at least according to the discussion in
the yshui#343. this also makes the xrender backend's code consistent with the
other backends' code.
and sort the xrender_ops structure in the order backend operations are
declared in the backend_operations structure.

this makes the xrender backend's code consistent with the other
backends' code and reduces the risk of collisions because some backend
operation names are quite simple (e.g. init, deinit, fill, etc.).
@yshui
Copy link
Owner

yshui commented Feb 29, 2024

Thanks

@yshui yshui merged commit f14149d into yshui:next Feb 29, 2024
15 checks passed
@absolutelynothelix absolutelynothelix deleted the we-do-a-little-bit-of-refactoring branch February 29, 2024 08:31
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.

2 participants