dawn-cmake/src/dawn/wire
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
..
client Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
server Handle new errors to WGPUBufferMapAsyncStatus 2023-05-04 06:46:19 +00:00
BUILD.gn Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
BufferConsumer.h Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
BufferConsumer_impl.h Fix condition for memory allocation to check for nullopt. 2022-11-30 22:35:09 +00:00
CMakeLists.txt Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
ChunkedCommandHandler.cpp [chromium-style] Adding/moving constructors and destructors. 2022-05-09 22:22:18 +00:00
ChunkedCommandHandler.h [chromium-style] Adding/moving constructors and destructors. 2022-05-09 22:22:18 +00:00
ChunkedCommandSerializer.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
ChunkedCommandSerializer.h Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
ObjectHandle.cpp dawn::wire::client: Track the object generation on the objects 2022-06-14 14:55:46 +00:00
ObjectHandle.h dawn::wire: Separate ObjectHandle to its own header. 2022-06-14 13:22:16 +00:00
SupportedFeatures.cpp Implements float32-filterable feature. 2023-05-18 07:21:11 +00:00
SupportedFeatures.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
Wire.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WireClient.cpp Add SwapChain::GetCurrentTexture 2023-05-26 10:32:17 +00:00
WireDeserializeAllocator.cpp [chromium-style] Fixup a few chromium-style issues. 2022-05-09 16:26:44 +00:00
WireDeserializeAllocator.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WireResult.h Run ./tools/format 2023-02-21 21:05:28 +00:00
WireServer.cpp Add a way to query if a device exists on the wire server 2022-05-12 00:09:26 +00:00