Skip to main content

zero

Function zero 

Source
pub fn zero<T: Default>() -> T
Expand description

Returns the WGSL zero value of a type.

Conveniently, all of the types for which this is defined also implement Default to return zero, so this is actually an alias for Default::default().