mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Support ErrorScopes for asynchronous GPU execution
This changes updates ErrorScopes so that scopes enclosing a Queue::Submit or Queue::Signal resolve their callbacks asynchronously after GPU execution is complete. Bug: dawn:153 Change-Id: I0e0b8a9f19f3f29d1b6a3683938154b87f190a07 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10701 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
bb3c895619
commit
be990077f4
@@ -111,4 +111,11 @@ namespace dawn_native {
|
||||
}
|
||||
}
|
||||
|
||||
void ErrorScope::Destroy() {
|
||||
if (!IsRoot()) {
|
||||
mErrorType = dawn::ErrorType::Unknown;
|
||||
mErrorMessage = "Error scope destroyed";
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace dawn_native
|
||||
|
||||
Reference in New Issue
Block a user