MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / exp

Function exp

examples/shaders/shared/src/lib.rs:50–52  ·  view source on GitHub ↗
(v: Vec3)

Source from the content-addressed store, hash-verified

48}
49
50pub fn exp(v: Vec3) -> Vec3 {
51 vec3(v.x.exp(), v.y.exp(), v.z.exp())
52}
53
54/// Based on: <https://seblagarde.wordpress.com/2014/12/01/inverse-trigonometric-functions-gpu-optimization-for-amd-gcn-architecture/>
55pub fn acos_approx(v: f32) -> f32 {

Callers 1

skyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected