basis_universal::encoding

Function encoder_init

Source
pub fn encoder_init()
Expand description

The underlying C++ library requires that encoder_init() has been called before a .basis file can be encoded. This function allows a user to do this early in the application explicitly. It is protected by a lock and AtomicBool flag so it is safe and cheap to call multiple times, and correctly handles multiple threads trying to initialize at the same time.