-
Notifications
You must be signed in to change notification settings - Fork 73
Redesign spirv-builder
's watch API
#422
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
base: main
Are you sure you want to change the base?
Conversation
5037f91
to
66a5c6b
Compare
66a5c6b
to
f241062
Compare
I thought CI issues were already resolved at GitHub side? |
e5e56df
to
f956b84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the new design!
Just iterated some more on it, so I'll let others do the reviewing
My changes to it:
- we can just consume SpirvBuilder, if users need to clone it they can
- changing a file during recompilation no longer throws errors in stdout but will trigger exactly one recompile when you call
recv()
again - wgpu example had a race condition between the first and watched compiles
4a9a64c
to
aefe49e
Compare
I added a non-blocking |
aefe49e
to
13a80b7
Compare
It was suggested to rewrite API from scratch instead of patching the existing one.
My idea now is to expose refactored
Watcher
, which could just returnCompileResult
onrecv()
, then we don't need to accept any callbacks, differentiate first compile result from others, etc.