From c2e1aa3bab4a62c37d67278bf030a32486a9df59 Mon Sep 17 00:00:00 2001 From: Krishna Ayyalasomayajula Date: Sat, 30 May 2026 20:57:00 -0500 Subject: [PATCH] docs: fix validation layer disable mechanism in GPU init section --- docs/01-rainbow-triangle.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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).