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[src]
pub fn new(
inner: Arc<Mutex<RustKtxStream<'a, T>>>,
texture_create_flags: TextureCreateFlags
) -> Self[src]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.
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for StreamSource<'a, T>impl<'a, T> !Send for StreamSource<'a, T>impl<'a, T> !Sync for StreamSource<'a, T>impl<'a, T: ?Sized> Unpin for StreamSource<'a, T>impl<'a, T: ?Sized> UnwindSafe for StreamSource<'a, T>