Be able to select multiple sysgpu's #1442

Open
opened 2026-01-15 11:47:46 +00:00 by Freziyt223 · 0 comments
Freziyt223 commented 2026-01-15 11:47:46 +00:00 (Migrated from github.com)

Hello, i wish there could be a way to make gpu struct be rather a function and you could choose sysgpu for it so program can choose different renderer on program startup rather then compile. Also it can't be solved as zig only allows dependency(.{.SysgpuBackend = ...}) to be called ONCE so i can't choose 2 sysgpu's and compile them into different dynamic libraries and switch in runtime.

Hello, i wish there could be a way to make gpu struct be rather a function and you could choose sysgpu for it so program can choose different renderer on program startup rather then compile. Also it can't be solved as zig only allows dependency(.{.SysgpuBackend = ...}) to be called ONCE so i can't choose 2 sysgpu's and compile them into different dynamic libraries and switch in runtime.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1442
No description provided.