What is LuisaCompute
stableLuisaCompute is a high-performance, cross-platform computing framework designed for graphics and general-purpose stream-processing tasks. It aims to unify programmability and performance through three core components:
- Embedded Domain-Specific Language (DSL): A C++-based DSL for authoring kernels. It uses meta-programming and operator overloading to trace user-defined kernels into an Abstract Syntax Tree (AST) without requiring custom preprocessing or compiler extensions.
- Unified Runtime: An abstract runtime layer that provides high-level resource wrappers (strongly and statically typed C++ objects). It manages cross-platform resources and command scheduling, automatically probing dependencies to optimize hardware utilization.
- Multiple Backends: Optimized backends that translate ASTs into platform-specific shader source code and execute them. Supported backends include CUDA, DirectX, Metal, and a CPU backend (implemented in Rust for debugging/fallback).
Note: LuisaCompute is a framework for building applications, not a standalone renderer. For a ready-to-use Monte Carlo renderer, use LuisaRender.