Skip to content

fix: div operator #1520

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

fix: div operator #1520

wants to merge 20 commits into from

Conversation

lursz
Copy link
Contributor

@lursz lursz commented Jul 21, 2025

Fixed / operator issue

@lursz lursz requested a review from Copilot July 21, 2025 14:16
Copilot

This comment was marked as outdated.

Copy link

github-actions bot commented Jul 21, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@51267d3a822282bbba24ea89ccdcb6a9bc58910f
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@51267d3a822282bbba24ea89ccdcb6a9bc58910f
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@51267d3a822282bbba24ea89ccdcb6a9bc58910f

benchmark
view benchmark

commit
view commit

@software-mansion software-mansion deleted a comment from Copilot AI Jul 21, 2025
@software-mansion software-mansion deleted a comment from Copilot AI Jul 21, 2025
@software-mansion software-mansion deleted a comment from Copilot AI Jul 21, 2025
@lursz lursz mentioned this pull request Jul 21, 2025
@lursz
Copy link
Contributor Author

lursz commented Jul 22, 2025

Put on hold, depends on #1446

@lursz lursz requested review from Copilot and aleksanderkatan July 25, 2025 11:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Bueno

@software-mansion software-mansion deleted a comment from Copilot AI Jul 25, 2025
@software-mansion software-mansion deleted a comment from Copilot AI Jul 25, 2025
@software-mansion software-mansion deleted a comment from Copilot AI Jul 25, 2025
@lursz lursz requested a review from reczkok July 25, 2025 12:42
Copy link
Contributor

@reczkok reczkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change!

expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(1, 2, 2, 2));
expect(div(1, vec2i(1, 2))).toStrictEqual(vec2i(1, 0));
expect(div(2, vec3i(1, 2, 3))).toStrictEqual(vec3i(2, 1, 0));
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(0, 0, 0, 0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(0, 0, 0, 0));
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i());

Or vec4i(0) if we want to be explicit

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