Fix CaptureAndReplaySurfaceTests reusing one HWND for two swapchains TestSurface and MultiFrame configured both the capture and replay surfaces on the same GLFW window. DXGI allows only one flip-model swapchain per HWND, so configuring the replay surface failed and force-lost the inner D3D12 device. The D3D12 debug layer reports it as: DXGI ERROR: IDXGIFactory::CreateSwapChain: Only one flip model swap chain can be associate with an HWND at a time. Fix: give each replay surface its own window via a CreateReplayWindow() helper, matching what the replay-checking harness already does. Bug: 465183957 Change-Id: Ib3fc05ffa3ea9f740dd3a28185cba09d75756294 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/317855 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Shrek Shao <shrekshao@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.