mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
WebGPU error handling 3: CommandEncoder for validation tests
BUG=dawn:8 Change-Id: I16ad900387adcbaf793177e97a96a5f19dcc47a0 Reviewed-on: https://dawn-review.googlesource.com/c/4760 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
e1f0d4e639
commit
695b68d100
@@ -44,9 +44,9 @@ TEST_F(QueueSubmitValidationTest, SubmitWithMappedBuffer) {
|
||||
// Create a command buffer that reads from the mappable buffer.
|
||||
dawn::CommandBuffer commands;
|
||||
{
|
||||
dawn::CommandBufferBuilder builder = device.CreateCommandBufferBuilder();
|
||||
builder.CopyBufferToBuffer(buffer, 0, targetBuffer, 0, 4);
|
||||
commands = builder.GetResult();
|
||||
dawn::CommandEncoder encoder = device.CreateCommandEncoder();
|
||||
encoder.CopyBufferToBuffer(buffer, 0, targetBuffer, 0, 4);
|
||||
commands = encoder.Finish();
|
||||
}
|
||||
|
||||
dawn::Queue queue = device.CreateQueue();
|
||||
|
||||
Reference in New Issue
Block a user