Update Surface documentation (#2412)

* Update Surface documentation

* Update Surface documentation

* Update vulkano/src/lib.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
This commit is contained in:
ilyas taouaou 2023-12-28 23:47:45 +01:00 committed by GitHub
parent bef7b94aef
commit d08d9f587d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,13 @@
//!
//! 3. If you intend to show graphics to the user on a window or a screen, create a [`Surface`].
//! A `Surface` is created from a window identifier or handle, that is specific to the display or
//! windowing system being used. The [`vulkano-win`] crate, which is part of the Vulkano
//! project, can make this step easier.
//! windowing system being used. Vulkano uses `raw-window-handle` to abstract over the different
//! windowing systems. Note that you have to make sure that the `raw-window-handle` that your
//! windowing library uses is compatible with the `raw-window-handle` that vulkano uses. For
//! example, if you use a `winit` version that uses a different version from the one vulkano
//! uses, you can add one of the [features](https://docs.rs/crate/winit/latest/features) that
//! starts with `rwh` to `winit`. Currently, vulkano is compatible with `rwh_06`.
//!
//!
//! 4. [Enumerate the physical devices] that are available on the `Instance`, and choose one that
//! is suitable for your program. A [`PhysicalDevice`] represents a Vulkan-capable device that