dawn-cmake/src/dawn/tests
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
..
benchmarks Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
end2end Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
mocks/platform Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
perf_tests Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
unittests Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
white_box Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
AdapterTestConfig.cpp d3d11: enable d3d11 if dawn is not build with chromium 2023-04-14 02:05:17 +00:00
AdapterTestConfig.h d3d11: enable d3d11 if dawn is not build with chromium 2023-04-14 02:05:17 +00:00
BUILD.gn Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
DawnNativeTest.cpp Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
DawnNativeTest.h Add CacheRequest utilities and tests 2022-06-11 03:50:33 +00:00
DawnTest.cpp Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
DawnTest.h Dawn: Rename remaining DiscoverAdapters to DiscoverPhysicalDevices 2023-05-26 09:27:20 +00:00
End2EndTestsMain.cpp tint->dawn: Move src/dawn_tests -> src/dawn/tests 2022-02-09 14:54:31 +00:00
MockCallback.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
OWNERS tint->dawn: Move src/dawn_tests -> src/dawn/tests 2022-02-09 14:54:31 +00:00
ParamGenerator.h Split some structs out of DawnTest.h into their own file. 2022-08-15 18:55:41 +00:00
PerfTestsMain.cpp tint->dawn: Move src/dawn_tests -> src/dawn/tests 2022-02-09 14:54:31 +00:00
ToggleParser.cpp tint->dawn: Move src/dawn_tests -> src/dawn/tests 2022-02-09 14:54:31 +00:00
ToggleParser.h Enable build/header_guard 2022-04-11 18:30:50 +00:00
UnittestsMain.cpp Fixup build/include_order issues in src/dawn. 2022-04-19 20:38:44 +00:00