Expand description
§khal - A hardware abstraction for compute shaders
The khal (Kompute Hardware Abstraction Layer) library provides abstractions for running shaders on any platform.
Warning khal is still very incomplete and under heavy development and is lacking a lot of features and backends.
§Other features
khal also provides utilities for:
- Writing device-side gpu code in a backend-agnostic way, with the ability to reuse the same code on multiple backend even within the same executable.
- Generating boilerplate and helper functions for loading a shader from Rust and launching its compute pipeline.
Re-exports§
pub use backend::AsGpuSlice;pub use backend::AsGpuSliceMut;pub use shader::Shader;pub use shader::ShaderArgs;pub use shader::ShaderArgsType;pub use backend::BufferUsages;
Modules§
- backend
- GPU backend abstractions for WebGPU, CUDA, and CPU execution.
- function
- Typed GPU function dispatch and launch utilities.
- re_
exports - Third-party modules re-exports.
- shader
- Shader trait definitions and argument binding.