dawn-cmake/src/dawn/wire/client
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
..
Adapter.cpp Allow device lost callback to be passed at creation 2023-05-17 01:52:30 +00:00
Adapter.h Add AdapterBase::APIGetInstance 2023-03-24 15:50:50 +00:00
ApiObjects.h Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Buffer.cpp Handle new errors to WGPUBufferMapAsyncStatus 2023-05-04 06:46:19 +00:00
Buffer.h Add Buffer.GetMapState() 2022-12-19 19:06:51 +00:00
Client.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Client.h Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
ClientDoers.cpp Reland "Allow internal errors for pipeline creation failure" 2023-05-11 00:06:38 +00:00
ClientInlineMemoryTransferService.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
ClientMemoryTransferService_mock.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
ClientMemoryTransferService_mock.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
Device.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Device.h Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Instance.cpp dawn::wire::client: Merge object allocators, add variadic Make. 2022-06-17 21:21:39 +00:00
Instance.h dawn::wire::client: Make ObjectBase destructor virtual. 2022-06-14 16:34:46 +00:00
LimitsAndFeatures.cpp [chromium-style] Adding/moving constructors and destructors. 2022-05-09 20:28:54 +00:00
LimitsAndFeatures.h [chromium-style] Adding/moving constructors and destructors. 2022-05-09 20:28:54 +00:00
ObjectBase.cpp dawn::wire::client::ObjectBase: encapsulate remaining members. 2022-06-14 16:13:26 +00:00
ObjectBase.h Refcount check in Buffer map async in Wire 2023-02-27 15:14:13 +00:00
ObjectStore.cpp dawn::wire::client: Merge object allocators, add variadic Make. 2022-06-17 21:21:39 +00:00
ObjectStore.h dawn::wire::client: Merge object allocators, add variadic Make. 2022-06-17 21:21:39 +00:00
QuerySet.cpp dawn::wire::client: Make object constructors less barebones. 2022-06-19 20:13:01 +00:00
QuerySet.h dawn::wire::client: Make object constructors less barebones. 2022-06-19 20:13:01 +00:00
Queue.cpp dawn::wire::client::ObjectBase: encapsulate remaining members. 2022-06-14 16:13:26 +00:00
Queue.h dawn::wire::client: Make ObjectBase destructor virtual. 2022-06-14 16:34:46 +00:00
RequestTracker.h Zero initialize the serial in dawn::wire::client::RequestTracker 2022-05-16 21:12:01 +00:00
ShaderModule.cpp dawn::wire::client::ObjectBase: encapsulate remaining members. 2022-06-14 16:13:26 +00:00
ShaderModule.h dawn::wire::client: Make ObjectBase destructor virtual. 2022-06-14 16:34:46 +00:00
SwapChain.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
SwapChain.h Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
Texture.cpp dawn: Add Device::CreateErrorTexture(desc) 2022-07-20 16:07:44 +00:00
Texture.h dawn: Add Device::CreateErrorTexture(desc) 2022-07-20 16:07:44 +00:00