This crate provides Rust bindings for Clspv, a prototype compiler for a subset of OpenCL C to Vulkan compute shaders.
Fetch the clspv
submodule:
git submodule update --init --recursive
Build the library using cargo:
cargo build
Install CMake and Ninja using your package manager:
apt install -y cmake ninja-build
# or:
dnf in cmake ninja-build
Install CMake:
brew install cmake ninja
Install the following prerequisites:
You might have to enable long paths for CMake to work properly.
This code is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE or LICENSE-MIT for details.