mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Adds error promoting to device loss when disallowed error occurs in a scope.
- Defaults consume error calls to only allow validation and device loss errors. - Allows OOM errors on Buffers, QuerySets, and Textures only. - Adds initial suite of unit tests (and any necessary updates to mock framework). Bug: dawn:1336 Change-Id: I82112ea6c147e894280e605bf8ae0ce00488c9f3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119800 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -35,7 +35,7 @@ TextureBase* SwapChain::GetNextTextureImpl(const TextureDescriptor* descriptor)
|
||||
DawnSwapChainNextTexture next = {};
|
||||
DawnSwapChainError error = im.GetNextTexture(im.userData, &next);
|
||||
if (error) {
|
||||
GetDevice()->HandleError(InternalErrorType::Internal, error);
|
||||
GetDevice()->HandleError(DAWN_INTERNAL_ERROR(error));
|
||||
return nullptr;
|
||||
}
|
||||
GLuint nativeTexture = next.texture.u32;
|
||||
|
||||
Reference in New Issue
Block a user