AcceptsDevicePixels Property

Definition

Assembly Broadside.Viewer.dll

Gets a value indicating whether Present(Tile, Bitmap) can take a tile its backend left on the device (the GPU) without reading its pixels; otherwise the session reads such a tile back into the bitmap first (ReadBack()).

bool AcceptsDevicePixels { get; }

Returns

Remarks

Issue #380. The default, false, suits every surface that reads the bitmap (an image, a PNG, a copy). The Blazor canvas surface accepts device pixels: it copies a tile still in the WebGL canvas GPU to GPU, and reads the bitmap otherwise.