mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
Add InjectValidationError to command encoder
Needed to implement bytesPerRow/rowsPerImage validation in Blink. Bug: dawn:566 Change-Id: I60e9ebd57e40d5043e7277cdc560cbf673bc2576 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/32582 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
b38a9c3ee7
commit
464aaeb558
@@ -180,3 +180,10 @@ TEST_F(CommandBufferValidationTest, CallsAfterAFailedFinish) {
|
||||
|
||||
ASSERT_DEVICE_ERROR(encoder.CopyBufferToBuffer(copyBuffer, 0, copyBuffer, 0, 0));
|
||||
}
|
||||
|
||||
// Test that calling inject validation error produces an error.
|
||||
TEST_F(CommandBufferValidationTest, InjectValidationError) {
|
||||
wgpu::CommandEncoder encoder = device.CreateCommandEncoder();
|
||||
encoder.InjectValidationError("my error");
|
||||
ASSERT_DEVICE_ERROR(encoder.Finish());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user