mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Merge pull request #1792 from ecton/surface-safety-docs
Document additional safety requirements of `Instance::create_surface`
This commit is contained in:
commit
f0520f8c54
@ -1454,7 +1454,8 @@ impl Instance {
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// - Raw Window Handle must be a valid object to create a surface upon.
|
||||
/// - Raw Window Handle must be a valid object to create a surface upon and
|
||||
/// must remain valid for the lifetime of the returned surface.
|
||||
pub unsafe fn create_surface<W: raw_window_handle::HasRawWindowHandle>(
|
||||
&self,
|
||||
window: &W,
|
||||
|
Loading…
Reference in New Issue
Block a user