File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Tests/GPUTestFramework/src/WebGPU Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2023-2024 Diligent Graphics LLC
2+ * Copyright 2023-2025 Diligent Graphics LLC
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -98,6 +98,8 @@ void TestingEnvironmentWebGPU::SubmitCommandEncoder(WGPUCommandEncoder wgpuCmdEn
9898 VERIFY_EXPR (wgpuCmdQueue != nullptr );
9999
100100 wgpuQueueSubmit (wgpuCmdQueue, 1 , &wgpuCmdBuffer);
101+ wgpuCommandBufferRelease (wgpuCmdBuffer);
102+
101103 if (WaitForIdle)
102104 {
103105 bool IsWorkDone = false ;
@@ -108,8 +110,7 @@ void TestingEnvironmentWebGPU::SubmitCommandEncoder(WGPUCommandEncoder wgpuCmdEn
108110 DEV_ERROR (" Failed wgpuQueueOnSubmittedWorkDone: " , Status);
109111 };
110112
111- WGPUQueue wgpuQueue = wgpuDeviceGetQueue (m_wgpuDevice);
112- wgpuQueueOnSubmittedWorkDone (wgpuQueue, WorkDoneCallback, &IsWorkDone);
113+ wgpuQueueOnSubmittedWorkDone (wgpuCmdQueue, WorkDoneCallback, &IsWorkDone);
113114
114115 while (!IsWorkDone)
115116 {
@@ -118,6 +119,8 @@ void TestingEnvironmentWebGPU::SubmitCommandEncoder(WGPUCommandEncoder wgpuCmdEn
118119#endif
119120 }
120121 }
122+
123+ wgpuQueueRelease (wgpuCmdQueue);
121124}
122125
123126GPUTestingEnvironment* CreateTestingEnvironmentWebGPU (const GPUTestingEnvironment::CreateInfo& CI,
You can’t perform that action at this time.
0 commit comments