Struct gfx_graphics::TextureContext
source · pub struct TextureContext<F, R, C>{
pub factory: F,
pub encoder: Encoder<R, C>,
}
Expand description
Context required to create and update textures.
Fields§
§factory: F
A factory to create textures.
encoder: Encoder<R, C>
An encoder to update textures.
Trait Implementations§
source§impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R>
impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R>
source§impl<F, R, C> UpdateTexture<TextureContext<F, R, C>> for Texture<R>
impl<F, R, C> UpdateTexture<TextureContext<F, R, C>> for Texture<R>
Auto Trait Implementations§
impl<F, R, C> Freeze for TextureContext<F, R, C>
impl<F, R, C> !RefUnwindSafe for TextureContext<F, R, C>
impl<F, R, C> Send for TextureContext<F, R, C>where
F: Send,
impl<F, R, C> Sync for TextureContext<F, R, C>
impl<F, R, C> Unpin for TextureContext<F, R, C>where
F: Unpin,
C: Unpin,
<R as Resources>::DepthStencilView: Unpin,
<R as Resources>::RenderTargetView: Unpin,
<R as Resources>::Buffer: Unpin,
<R as Resources>::ShaderResourceView: Unpin,
<R as Resources>::UnorderedAccessView: Unpin,
<R as Resources>::Sampler: Unpin,
impl<F, R, C> !UnwindSafe for TextureContext<F, R, C>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more