make swapChain an optional parameter when calling capture() (if not specified, first swapchain will be used)

This commit is contained in:
Nick Fisher
2025-04-16 17:16:07 +08:00
parent 48654f0e8f
commit c3e583ac5a

View File

@@ -259,7 +259,7 @@ abstract class FilamentApp<T> {
/// ///
/// Pixel buffers will be returned in RGBA float32 format. /// Pixel buffers will be returned in RGBA float32 format.
/// ///
Future<List<(View, Uint8List)>> capture(covariant SwapChain swapChain, Future<List<(View, Uint8List)>> capture(covariant SwapChain? swapChain,
{covariant View? view, {covariant View? view,
bool captureRenderTarget = false, bool captureRenderTarget = false,
PixelDataFormat pixelDataFormat = PixelDataFormat.RGBA, PixelDataFormat pixelDataFormat = PixelDataFormat.RGBA,