dawn-cmake/src/dawn/tests/unittests
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
..
d3d12 Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
native Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
validation Compat: Reject non-matching blend state / write mask 2023-05-25 04:37:12 +00:00
wire Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
AsyncTaskTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
BitSetIteratorTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
BuddyAllocatorTests.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
BuddyMemoryAllocatorTests.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
ChainUtilsTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
CommandAllocatorTests.cpp CommandAllocatorTests: Fix a couple use-after-move. 2022-05-23 09:57:39 +00:00
ConcurrentCacheTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
EnumClassBitmasksTests.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
EnumMaskIteratorTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ErrorTests.cpp Merge DAWN_FORMAT_VALIDATION_ERROR in DAWN_VALIDATION_ERROR. 2022-08-30 13:39:47 +00:00
FeatureTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
GPUInfoTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
GetProcAddressTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ITypArrayTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ITypBitsetTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ITypSpanTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ITypVectorTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
LimitsTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
LinkedListTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
MathTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
MutexTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
NumericTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ObjectBaseTests.cpp Renames C++ object Release function to MoveToCHandle. 2023-05-10 23:48:22 +00:00
PerStageTests.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
PerThreadProcTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
PlacementAllocatedTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RefBaseTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RefCountedTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ResultTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
RingBufferAllocatorTests.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
SerialMapTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SerialQueueTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SlabAllocatorTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
StackContainerTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
SubresourceStorageTests.cpp Bubble up errors from EnsureSubresourceContentInitialized. 2023-03-01 21:53:31 +00:00
SystemUtilsTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
ToBackendTests.cpp Make Adapter and Instance lifetimes more robust 2022-08-20 02:22:41 +00:00
ToggleTests.cpp Dawn: Deprecate DiscoverAdapters with DiscoverPhysicalDevices 2023-05-25 02:42:27 +00:00
TypedIntegerTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
UnicodeTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00
WindowsUtilsTests.cpp Namespace dawn/common/ and dawn/utils/ in dawn:: 2023-05-17 18:41:02 +00:00