Implement GPUDeviceWebGPU::WaitForGPU

This commit is contained in:
Wojtek Figat
2026-03-16 16:41:39 +01:00
parent 7f49cae9af
commit ed3a827b5f
3 changed files with 24 additions and 1 deletions

View File

@@ -561,6 +561,7 @@ void GPUContextWebGPU::Flush()
{
wgpuQueueSubmit(_device->Queue, 1, &commandBuffer);
wgpuCommandBufferRelease(commandBuffer);
_device->QueueSubmits++;
}
}
@@ -1075,6 +1076,7 @@ void GPUContextWebGPU::FlushRenderPass()
_blendFactorDirty = true;
_scissorRectDirty |= _scissorRect != Rectangle(0, 0, attachmentSize.Width, attachmentSize.Height);
_viewportDirty |= _viewport != Viewport(Float2(attachmentSize.Width, attachmentSize.Height));
ASSERT_LOW_LAYER(_scissorRect.GetWidth() <= attachmentSize.Width && _scissorRect.GetHeight() <= attachmentSize.Height);
}
void GPUContextWebGPU::FlushBindGroup()