mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
document compatible_surface requirement for WebGL directly on wgt::RequestAdapterOptions
This commit is contained in:
parent
e6a260ecd4
commit
0fa783372b
@ -221,6 +221,7 @@ pub struct RequestAdapterOptions<S> {
|
||||
pub force_fallback_adapter: bool,
|
||||
/// Surface that is required to be presentable with the requested adapter. This does not
|
||||
/// create the surface, only guarantees that the adapter can present to said surface.
|
||||
/// For WebGL, this is strictly required, as an adapter can not be created without a surface.
|
||||
pub compatible_surface: Option<S>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user