Skip to content

Say in the README how an app picks each optional graphics backend - #348

Merged
LogicalError merged 1 commit into
mainfrom
tachyonui/readme-pick-backend
Nov 26, 2026
Merged

LogicalError merged 1 commit into
mainfrom
tachyonui/readme-pick-backend

Conversation

@LogicalError

Copy link
Copy Markdown
Owner

The README's optional-backend bullets said how to build a backend in and how to pick it in the showcase, but not how to pick it in your own app.

The change

Each optional backend now names the backend first, with these sub-bullets:

  • Build it in: the CMake option, for example -DTACHYON_SDLGPU=ON.
  • Pick it:
    • in your own app, with InitializeOptions::graphicsAPI = GraphicsAPI::SDLGPU (or D3D12, or Vulkan on macOS)
    • in the showcase, with --graphics sdlgpu
  • Direct3D 12 only: the GPUs it needs, as before.

It covers:

  • Windows: Direct3D 12 and SDL GPU
  • Linux: SDL GPU
  • macOS: SDL GPU and Vulkan

Only the README changes.

The optional-backend bullets said how to build a backend in and how the
showcase picks it (--graphics), but not how an app does. Each now says:
the CMake option that builds it in, InitializeOptions::graphicsAPI to pick
it in an app, and --graphics to pick it in the showcase.
@LogicalError
LogicalError merged commit 8f25c3b into main Nov 26, 2026
4 checks passed
@LogicalError
LogicalError deleted the tachyonui/readme-pick-backend branch November 26, 2026 22:18
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.

1 participant