tiny.choir.backends.gpu.cpu
Defined in backends.gpu.
API (6)
Actions
Public operations.
lowerKernelToHostLooplowerStagesToHost: Lowers every stage function and its reachable ordinary callees into a host module the caller owns and erases.
Types and contracts
Public types and contracts.
LowerOptionsStageRefusal: Where a lowering stopped, for a caller that reports why.
Namespaces
Public namespaces.
loweringstage: Lowers the vertex and fragment functions of a gpu-dialect module to host functions, so a CPU rasterizer runs the same stage code a GPU does.
Source
Source: lib/choir/src/backends/gpu/cpu/root.zig
zig
pub const lowering = @import("lowering.zig");pub const stage = @import("stage.zig");pub const LowerOptions = lowering.LowerOptions;pub const lowerKernelToHostLoop = lowering.lowerKernelToHostLoop;pub const lowerStagesToHost = stage.lowerStagesToHost;pub const StageRefusal = stage.Refusal;Source: lib/choir/src/backends/gpu/root.zig:8
zig
pub const cpu = @import("cpu/root.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |