docs: fix validation layer disable mechanism in GPU init section

This commit is contained in:
2026-05-30 20:57:00 -05:00
parent ccd5f2a61a
commit c2e1aa3bab

View File

@@ -439,8 +439,8 @@ to a `VkQueue`.
> automatically during development and surface errors as log messages or > automatically during development and surface errors as log messages or
> panics, saving hours of debugging silent GPU corruption. The tradeoff: > panics, saving hours of debugging silent GPU corruption. The tradeoff:
> validation adds measurable overhead to every frame. In release builds, > validation adds measurable overhead to every frame. In release builds,
> disable validation by setting `DeviceDescriptor::device_type` or using > disable validation by omitting `InstanceFlags::VALIDATION` when creating the
> the `WGPU_BACKEND` environment variable to skip the validation path. > `Instance`, or set the `WGPU_VALIDATION=0` environment variable.
**Step 5 — SurfaceConfiguration:** This allocates the **Step 5 — SurfaceConfiguration:** This allocates the
[swapchain](concepts/GLOSSARY.md#swapchain) [framebuffers](concepts/GLOSSARY.md#framebuffer). [swapchain](concepts/GLOSSARY.md#swapchain) [framebuffers](concepts/GLOSSARY.md#framebuffer).