Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 7419cd4

Browse files
committed
Changed Synchronize call to SynchronizeAsync in Mandelbrot
1 parent 381c12f commit 7419cd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SpawnDev.ILGPU.WebGPU.Demo/Pages/Mandelbrot.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@
275275
var sw = Stopwatch.StartNew();
276276

277277
_ilgpuKernel!(_ilgpuBuffer!.IntExtent, _ilgpuBuffer.View, _width, _height, _maxIterations, _centerX, _centerY, _zoom);
278-
_ilgpuAccelerator.Synchronize();
278+
279+
await _ilgpuAccelerator!.SynchronizeAsync();
279280

280281
var webGpuMemBuffer = (WebGPUMemoryBuffer)((IArrayView)_ilgpuBuffer).Buffer;
281282
var bytes = await webGpuMemBuffer.NativeBuffer.CopyToHostAsync();

0 commit comments

Comments
 (0)