mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01: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>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%