-
Notifications
You must be signed in to change notification settings - Fork 943
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
Gracefully handle get_next_texture failure #369
Conversation
Thank you! |
d9b3d60
to
ca4784a
Compare
Gotcha, same story with #368 then. Didn't realize because I've just been using the Rust API... I just updated the C API to fill an out param and return a status code - better? |
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.
That's better, thank you for the update!
One more concern...
ca4784a
to
b9d124c
Compare
@kvark How's this? |
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.
Alright, this is almost perfect. Just one more step!
b9d124c
to
027a61a
Compare
@kvark ok all set :) |
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.
bors r+
369: return Result instead of panic r=kvark a=antonok-edm Fixes gfx-rs/wgpu-rs#106 Pretty simple implementation, let me know if this isn't sufficient Co-authored-by: Anton Lazarev <antonok35@gmail.com>
Build succeeded |
@kvark does it make sense to change the corresponding |
yes, absolutely! |
115: Handle error case for SwapChain::get_next_texture r=kvark a=antonok-edm Updates `SwapChain::get_next_texture` to account for gfx-rs/wgpu#369. Otherwise, an invalid `Id` is returned and may cause confusing errors. Co-authored-by: Anton Lazarev <antonok35@gmail.com>
115: Handle error case for SwapChain::get_next_texture r=kvark a=antonok-edm Updates `SwapChain::get_next_texture` to account for gfx-rs#369. Otherwise, an invalid `Id` is returned and may cause confusing errors. Co-authored-by: Anton Lazarev <antonok35@gmail.com>
369: Implement SAMPLED_TEXTURE_ARRAY_NON_UNIFORM_INDEXING r=kvark a=cwfitzgerald This implements gfx-rs#715 in wgpu-rs. I haven't changed the example, as I want to actually think up a better example to use and didn't want that to block this. It will change in the future however. Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Fixes gfx-rs/wgpu-rs#106
Pretty simple implementation, let me know if this isn't sufficient