Cargo Features

sunscreen_math has no features set by default.

[dependencies]
sunscreen_math = { version = "0.8.1", features = ["nightly-features", "cuda", "metal", "webgpu", "opencl", "gpu", "pina"] }
nightly-features
cuda = gpu

Enables cust and find_cuda_helper

metal = gpu

Enables metal ^0.26.0

webgpu = gpu

Enables bytemuck, futures, naga ^0.13.0, tokio, wgpu ^0.17.0, and wgpu-core ^0.17.0

opencl = gpu

Enables ocl

gpu cuda? metal? opencl? webgpu?

Affects sunscreen_math::RistrettoPointVec, sunscreen_math::ScalarVec

pina

Affects sunscreen_math::RistrettoPointVec, sunscreen_math::ScalarVec