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

Refactor and Improve Swizzling Functions in OSLib #49

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 1, 2024

  • Enhanced oslSwizzleTexture function with improved readability, loop structure, and consistency in variable usage.
  • Added safety check for memory allocation failure in oslSwizzleImage function to handle errors gracefully.
  • Improved documentation and added comments for better understanding of swizzling logic.
  • Standardized pixel width calculations across functions for consistency.
  • Cleaned up redundant code and made minor optimizations in the swizzling process.

- Enhanced `oslSwizzleTexture` function with improved readability, loop structure, and consistency in variable usage.
- Added safety check for memory allocation failure in `oslSwizzleImage` function to handle errors gracefully.
- Improved documentation and added comments for better understanding of swizzling logic.
- Standardized pixel width calculations across functions for consistency.
- Cleaned up redundant code and made minor optimizations in the swizzling process.
@dogo dogo merged commit ae428f5 into master Sep 1, 2024
6 checks passed
@dogo dogo deleted the feature/improve-oslSwizzleImage branch September 1, 2024 02:54
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