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

Bug fixes for wgpu.js #4960

Merged
merged 1 commit into from
Mar 23, 2025
Merged

Bug fixes for wgpu.js #4960

merged 1 commit into from
Mar 23, 2025

Conversation

jimhub
Copy link
Contributor

@jimhub jimhub commented Mar 23, 2025

Some small bug fixes for wgpu.js as I was working through a somewhat involved renderer.

const dynamicOffsets = this.array(
dynamicOffsetCount,
dynamicOffsetsPtr,
(ptr) => this.mem.loadU32(ptr),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not even going to try to understand the javascript quirks that make it so this works, but just this.mem.loadU32 does not, but this is what I had to do to get it working.

@@ -3087,7 +3097,7 @@ class WebGPUInterface {
* @param {number} surfaceCapabilitiesPtr
*/
wgpuSurfaceCapabilitiesFreeMembers: (surfaceCapabilitiesPtr) => {
const off = this.struct(capabilitiesPtr);
const off = this.struct(surfaceCapabilitiesPtr);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typo with param name.

@gingerBill gingerBill requested a review from laytan March 23, 2025 13:21
@laytan laytan merged commit 2e64f5f into odin-lang:master Mar 23, 2025
7 checks passed
@laytan
Copy link
Collaborator

laytan commented Mar 23, 2025

Thank you!

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