Skip to content

refactor(flame_3d): Abstract GPU implementation away for future proofing different backends#3928

Merged
wolfenrain merged 1 commit into
mainfrom
refactor(flame_3d)-abstract-gpu-implementation-away-for-future-proofing-different-backends
May 21, 2026
Merged

refactor(flame_3d): Abstract GPU implementation away for future proofing different backends#3928
wolfenrain merged 1 commit into
mainfrom
refactor(flame_3d)-abstract-gpu-implementation-away-for-future-proofing-different-backends

Conversation

@wolfenrain

Copy link
Copy Markdown
Contributor

Description

Abstracted away our GPU code into an abstract backend API with a flutter_gpu backend implementation.

This allows us (and others) to use different backends if so required.

This implementation is fully backwards compatible, no user-facing APIs changed.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

@wolfenrain wolfenrain changed the title refactor(flame_3d): Abstract GPU implementation away for future proof ing different backends refactor(flame_3d): Abstract GPU implementation away for future proofing different backends May 21, 2026
@wolfenrain wolfenrain force-pushed the refactor(flame_3d)-abstract-gpu-implementation-away-for-future-proofing-different-backends branch from 3534128 to 374bb76 Compare May 21, 2026 09:19
Comment thread packages/flame_3d/example/lib/main.dart
Comment thread packages/flame_3d/lib/src/graphics/backend/gpu_backend.dart
Comment thread packages/flame_3d/lib/src/graphics/gpu_context_wrapper.dart

@luanpotter luanpotter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wolfenrain wolfenrain force-pushed the refactor(flame_3d)-abstract-gpu-implementation-away-for-future-proofing-different-backends branch from 374bb76 to 8cf669e Compare May 21, 2026 14:14
@wolfenrain wolfenrain merged commit f625173 into main May 21, 2026
8 checks passed
@wolfenrain wolfenrain deleted the refactor(flame_3d)-abstract-gpu-implementation-away-for-future-proofing-different-backends branch May 21, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants