Uh oh!
There was an error while loading. Please reload this page.
Make AcceptFirstCompile public - #417
Conversation
Firestar99
commented
Sep 29, 2025
I kinda hate how convoluted the current watch API has gotten. If you want to, feel free to completely refactor it into whatever suits you best. |
The best API I could think of is the channel-like one... Also I could not find any tests for |
Firestar99
commented
Oct 1, 2025
Whatever you feel like is easier. I just want to encourage you to make a new API if you have a better idea, rather than trying to keep supporting the existing one (like I did in the past). Not sure how viable it is, but do we even have to spawn a new thread? Couldn't we just eat the current thread and have the argument be a closure that handles the result of a compile? Then the application can spawn a thread and move the data through a pipe, if it wants to. But it doesn't have to. |
tuguzT
commented
Oct 1, 2025
I agree that rewriting this API could be beneficial. But I just wanted to patch it to finish
As I see by
Yes, I think that could be easily done on |
tuguzT
commented
Oct 1, 2025
Closing this for now in favor of #422 |
This is needed for Rust-GPU/cargo-gpu#112 to add
watch()method for shader crate builder ofcargo-gpu-buildcrate.