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