dawn-cmake/src/dawn
Corentin Wallez 943a1a2d7a Add SwapChain::GetCurrentTexture
This is to eventually allow more using swapchain textures as CopySrc and
CopyDst. Note that this commit doesn't add any additional usages.

Because textures can reflect their creation parameters, swapchains now
need to pass in the correct texture descriptor in all code paths. This
requires additional handling in dawn::native error swapchains, and
dawn::wire::client's SwapChain reservation and Device::CreateSwapChain
code.

Tests are added for all of these code paths except
dawn::wire::client::Device::CreateSwapChain because there is no way to
create a Surface in wire tests at the moment (they don't have an
instance).

Bug: dawn:1551
Change-Id: I22d5e909e1e94d48eb52cae57aabff8a7f0c04c1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/133463
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
2023-05-26 10:32:17 +00:00
..
common [loongarch] Cleanup deprecated built-in macro. 2023-05-25 10:37:04 +00:00
fuzzers Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
glfw tint: Remove type::AddressSpace::kNone 2023-02-18 12:37:34 +00:00
native Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
node Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
platform Fix TRACE_EVENT wasn't thread safe. 2023-04-06 08:08:00 +00:00
samples Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
tests Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
utils Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
wire Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
BUILD.gn Moves cpp_headers into public_deps when depending on the dawn:cpp. 2023-05-17 23:31:43 +00:00
CMakeLists.txt Add basic Dawn microbenchmarks using Google benchmark 2023-04-17 18:11:51 +00:00
OWNERS Fix typo in OWNERS file 2022-05-31 20:34:39 +00:00
gpu_info.json Add the device id of Intel Raptor Lake to gpu_info.json 2023-01-28 02:58:52 +00:00