gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.29k stars 902 forks source link

Documentation about math functions #4314

Open JCapucho opened 3 years ago

JCapucho commented 3 years ago

Right now the math functions don't provide any information about the number of arguments or the order in which they should appear, this is important to clarify as frontends and backends might have different definitions, for example glsl has no atan2(x, y) and instead uses atan(y, x)

kvark commented 3 years ago

Some documentation is needed for sure! Note that we do have a public argument_count method to get the number of arguments.