// ---
// tags: trident, rust
// crystal-type: source
// crystal-domain: comp
// ---
//! GPU compute infrastructure.
//!
//! Uses wgpu for cross-platform GPU acceleration (Metal, Vulkan, DX12).
//! Provides device initialization and shader constants for grammar mask
//! and field arithmetic.
pub
/// Try to create a wgpu device and queue.
/// Returns None if no GPU adapter is available.
Homonyms
cyb/evy/forks/naga/src/back/hlsl/mod.rs
struct Baz { m: mat3x2, } struct Baz { float2 m_0; float2 m_1; float2 m_2; }; float3x2 GetMatmOnBaz(Baz obj) { return float3x2(obj.m_0, obj.m_1, obj.m_2); }