mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
d065ecffe7184d42b381ef6fa285652c570a709e
323: Rename SwapChain::get_next_texture to SwapChain::get_next_frame, and return errors to the user. r=kvark a=AlphaModder Depends on https://github.com/gfx-rs/wgpu/pull/668. This creates a new type `SwapChainResult` just for the method. It also alters the signature of `Context::swap_chain_get_next_texture` to return ```rust (Option<Self::TextureViewId>, wgt::SwapChainStatus, Self::SwapChainOutputDetail) ``` which is a little ugly but I couldn't think of anything better. Co-authored-by: AlphaModder <quasiflux@gmail.com>
Description
No description provided
Languages
Rust
79.9%
WGSL
16.2%
HLSL
2%
GLSL
1.7%
JavaScript
0.2%