gfx-rs / metal-rs

Rust bindings for Metal
Apache License 2.0
567 stars 112 forks source link

feat: Make the features testable and threadsafe. #290

Closed Narsil closed 10 months ago

Narsil commented 10 months ago

tl;dr. No idea why we need this, but if we don't the main thread will attempt to release the MatrixDescriptor and fail.

This fix is a dirty hack which simply leaks those MatrixDescriptor. Which seems ok since they get cleaned up by the releasepool at the end of the program, but this is definitely a temporary workaround, which should at least enable adding a few tests on the test suite.