Skip to content

Conversation

@oliverbestmann
Copy link

@oliverbestmann oliverbestmann commented Nov 7, 2025

I can split the PR up into multiple small onces, but as the v25 PR is already one single big PR, i just went with another big one ;)

  • Update to go 24 in go.mod file
  • Go against wgpu 27 (current version)
  • Adjust js api to match the non-js api in multiple places
  • Fix runtime/cgo: misuse of an invalid Handle #6 by not using pointers to cgo.Handle
  • Expose wgpu DesiredMaximumFrameLatency in SurfaceConfiguration
  • Use an optimized implementation for Queue.WriteBuffer and Queue.WriteTexture
  • Handle missing VertexFormat in VertexFormat.Size()
  • Implement missing methods on Texture for js.

… that can be passed as an unsafe.Pointer or as a void* in c.
@oliverbestmann
Copy link
Author

Fixed the handle issue by introducing our own handle type that can be legally converted into an unsafe.Pointer.

@oliverbestmann
Copy link
Author

Note: i've now forked the repository and added more things on the main branch, that you might not want to have upstream. This includes improved garbage collection of wgpu resources, makeing calls to Release unecessary, as well as removing goal and moving the prebuild libraries into branches, as wgpu v27 is above the go get limit of 512mb.

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