/// Attempts to create a new texture, consuming the given [`TextureSource`].
Attempts to create a new texture, consuming the given [`TextureSource`].
Attempts to create a new texture consuming the given [ ` TextureSource ` ] .
pub fn new<S>(source: S) -> Result<Self, KtxError>
    where
        S: TextureSource<'a>,
    {
        source.create_texture()
    }
pub fn new < S > ( source : S ) -> Result < Self , KtxError > where S : TextureSource < ' a > , { source . create_texture ( ) }
Attempts to create a new texture, consuming the given [`TextureSource`].
Attempts to create a new texture consuming the given [ ` TextureSource ` ] .
source
S