サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
rust-gpu.github.io
I've built a demo of a single shared Rust codebase that runs on every major GPU platform: CUDA for NVIDIA GPUs SPIR-V for Vulkan-compatible GPUs from AMD, Intel, NVIDIA, and Android devices Metal for Apple devices DirectX 12 for Windows WebGPU for browsers CPU fallback for non-GPU systems The same compute logic runs on all targets, written entirely in regular Rust. No shader or kernel languages ar
use glam::UVec3; use spirv_std::spirv; enum Outcome { Fizz, Buzz, FizzBuzz, } trait Game { fn fizzbuzz(&self) -> Option<Outcome>; } impl Game for u32 { fn fizzbuzz(&self) -> Option<Outcome> { match (self % 3 == 0, self % 5 == 0) { (true, true) => Some(Outcome::FizzBuzz), (true, false) => Some(Outcome::Fizz), (false, true) => Some(Outcome::Buzz), _ => None, } } } #[spirv(compute(threads(64)))] pub
このページを最初にブックマークしてみませんか?
『Rust GPU The future of GPU programming』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く