flutter_wgpu 0.1.0 copy "flutter_wgpu: ^0.1.0" to clipboard
flutter_wgpu: ^0.1.0 copied to clipboard

Flutter plugin that bridges wgpu GPU textures to Flutter.

flutter_wgpu #

Flutter plugin that displays wgpu GPU surfaces as Flutter textures. Handles the platform-specific texture sharing so you can render with wgpu and show it in a Flutter widget.

Platform support #

Platform Method
macOS, iOS IOSurface (zero-copy)
Android SurfaceProducer
Windows, Linux Pixel buffer copy

Usage #

final controller = WgpuTextureController(
  deviceHandle: device.handle,
  width: 800,
  height: 600,
);
await controller.initialize();

// Render to controller.surface
// ...

// Display in widget tree
WgpuTextureWidget(controller: controller)

Most users should use flutter_gpux instead, which wraps this with a higher-level GpuRenderer API.

0
likes
140
points
34
downloads

Documentation

API reference

Publisher

verified publisherdartgfx.dev

Weekly Downloads

Flutter plugin that bridges wgpu GPU textures to Flutter.

Repository (GitHub)
View/report issues

Topics

#gpu #flutter #graphics

License

MIT (license)

Dependencies

flutter, wgpu

More

Packages that depend on flutter_wgpu

Packages that implement flutter_wgpu