mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 08:57:26 +00:00
Add missing optional label member to descriptors
This CL adds missing optional label members to all descriptors. It is not used yet but needed from the WebGPU side. Bug: dawn:22 Change-Id: I103870f9207eed8168bc2245294888af4e1edd9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11720 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
3fd022ef60
commit
277d2e15d5
@@ -40,6 +40,7 @@ static DawnProcDeviceCreateSwapChain originalDeviceCreateSwapChain = nullptr;
|
||||
DawnSwapChain ErrorDeviceCreateSwapChain(DawnDevice device, const DawnSwapChainDescriptor*) {
|
||||
DawnSwapChainDescriptor desc;
|
||||
desc.nextInChain = nullptr;
|
||||
desc.label = nullptr;
|
||||
// A 0 implementation will trigger a swapchain creation error.
|
||||
desc.implementation = 0;
|
||||
return originalDeviceCreateSwapChain(device, &desc);
|
||||
|
||||
Reference in New Issue
Block a user