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

Move TypedArray utilities #16109

Merged
merged 6 commits into from
Jan 28, 2025
Merged

Conversation

alexchuber
Copy link
Contributor

Move TypedArray utilities to common buffer utility file. Replace TypedArray with TypedArrayLike in core types.

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 24, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 27, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 27, 2025

@ryantrem
Copy link
Member

ryantrem commented Jan 27, 2025

Replace TypedArray with TypedArrayLike in core types.

Was this part of an older itereation of the PR?

@alexchuber
Copy link
Contributor Author

alexchuber commented Jan 27, 2025

Replace TypedArray with TypedArrayLike in core types.

Yes, this commit was from an older iteration of the PR. I first wanted to replace TypedArray with TypedArrayLike, then realized I preferred the TypedArray over TypedArrayLike, and undid it. (Using the union of all TypedArrays allows us to access its utility functions like .every(), .slice(), etc. without adding them to the interface.)

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 27, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 27, 2025

@sebavan sebavan enabled auto-merge (squash) January 28, 2025 17:12
@sebavan sebavan merged commit 28fa2b4 into BabylonJS:master Jan 28, 2025
14 checks passed
@alexchuber alexchuber deleted the typed-array-utils branch February 7, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants