Skip to content

Conversation

@obiwac
Copy link
Contributor

@obiwac obiwac commented Dec 28, 2025

The conversion from the Go type to the C type assumes this memory is zeroed. But it might not be zeroed, in which case conversion back from C to Rust will fail in webgpu-native (specifically in map_instance_descriptor).

There might be other places where memory is meant to be zeroed but isn't - I'll go through all malloc calls when I have time :)

Copy link
Member

@kkoreilly kkoreilly left a comment

Choose a reason for hiding this comment

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

Thanks!

@kkoreilly kkoreilly merged commit bf60725 into cogentcore:main Jan 6, 2026
3 checks passed
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