diff --git a/docs/01-rainbow-triangle.md b/docs/01-rainbow-triangle.md index a19fb72..c74cdfe 100644 --- a/docs/01-rainbow-triangle.md +++ b/docs/01-rainbow-triangle.md @@ -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).