Skip to content

Commit eba4bd0

Browse files
Clean up public API
1 parent eab9402 commit eba4bd0

34 files changed

+2767
-1082
lines changed

samples/DrawingBackendBenchmark/DrawingBackendBenchmark.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Silk.NET.WebGPU" Version="2.23.0" />
1716
<PackageReference Include="SkiaSharp" Version="3.119.2" />
1817
<PackageReference Include="SkiaSharp.Views.WindowsForms" Version="3.119.2" />
1918
</ItemGroup>

samples/DrawingBackendBenchmark/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ dotnet run --project samples/DrawingBackendBenchmark -c Release
2323
```
2424

2525
The WebGPU path renders to an offscreen native texture and reads the final frame back for preview. The reported benchmark time measures scene rendering and flush time only, not the preview readback.
26+
27+
Internally the sample now uses an owned `WebGPURenderTarget<TPixel>` so the offscreen WebGPU setup stays small while still supporting the benchmark's hybrid CPU+GPU frame flow.

samples/DrawingBackendBenchmark/SkiaSharpBenchmarkBackend.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ internal sealed class SkiaSharpBenchmarkBackend : IBenchmarkBackend, IDisposable
1717
private int cachedWidth;
1818
private int cachedHeight;
1919

20-
public SkiaSharpBenchmarkBackend(GRContext? context = null)
21-
{
22-
this.context = context;
23-
}
20+
public SkiaSharpBenchmarkBackend(GRContext? context = null) => this.context = context;
2421

2522
public bool IsGpu => this.context is not null;
2623

0 commit comments

Comments
 (0)