Struct libktx_rs::sources::StreamSource [−][src]
pub struct StreamSource<'a, T: RWSeekable + ?Sized + 'a> { /* fields omitted */ }
Expand description
TextureSource
for reading a texture from a RustKtxStream
.
Implementations
pub fn new(
inner: Arc<Mutex<RustKtxStream<'a, T>>>,
texture_create_flags: TextureCreateFlags
) -> Self
pub fn new(
inner: Arc<Mutex<RustKtxStream<'a, T>>>,
texture_create_flags: TextureCreateFlags
) -> Self
Creates a new stream texture source from the given RustKtxStream
and texture creation flags.
Destroys self
, giving back the inner RustKtxStream
that was passed on construction.
Trait Implementations
Attempts to create a new texture by consuming self
.