wgebra 0.2.0

Composable WGSL shaders for linear algebra.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use wgcore::Shader;

// NOTE: interesting perf. comparison between quaternions and matrices:
//       https://tech.metail.com/performance-quaternions-gpu/

#[derive(Shader)]
#[shader(src = "quat.wgsl")]
/// Shader exposing a quaternion type and operations for representing 3D rotations.
pub struct WgQuat;

wgcore::test_shader_compilation!(WgQuat);