Download wgpu/wgpu-gemm/src/bin/features.rs from kylinfires/lingbot-world-vulkan: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/kylinfires/lingbot-world-vulkan/resolve/main/wgpu/wgpu-gemm/src/bin/features.rs
- Command line
-
hf download hf://kylinfires/lingbot-world-vulkan/wgpu/wgpu-gemm/src/bin/features.rs
-
curl -L -o features.rs https://huggingface.co/kylinfires/lingbot-world-vulkan/resolve/main/wgpu/wgpu-gemm/src/bin/features.rs
667 Bytes
| fn main() { | |
| let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor { backends: wgpu::Backends::VULKAN, ..Default::default() }); | |
| let adapter = pollster::block_on(instance.request_adapter(&wgpu::RequestAdapterOptions { | |
| power_preference: wgpu::PowerPreference::HighPerformance, | |
| compatible_surface: None, force_fallback_adapter: false, | |
| })).expect("adapter"); | |
| let f = adapter.features(); | |
| println!("adapter: {:?}", adapter.get_info()); | |
| println!("SHADER_F16={}", f.contains(wgpu::Features::SHADER_F16)); | |
| println!("FLOAT32_FILTERABLE={}", f.contains(wgpu::Features::FLOAT32_FILTERABLE)); | |
| println!("features={:?}", f); | |
| } | |