Registry / other / spirv-std

spirv-std

JSON →
library0.9.0rscratesunverified

Standard functions and types for SPIR-V shader programming in Rust.

# Cargo.toml [dependencies] spirv-std = "0.9.0"
INSTALL
IMPORT
SIG · SPIRV-STD
S
spirv-std
otherrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Vec4
use spirv_std::glam::Vec4;

Use SPIR-V standard types like Vec4.

use spirv_std::glam::Vec4; fn main() { let v = Vec4::new(1.0, 2.0, 3.0, 4.0); println!("{:?}", v); }
Debug
Known issues
gotchaOnly works when compiling to SPIR-V target.
fix
Use with rust-gpu toolchain and target spirv-unknown-unknown.
affects: >=0.9.0
Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
spirv-std — cargo add spirv-std · libregistry