[−]Struct gfx_graphics::TextureContext
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
impl<F, R, C> UpdateTexture<TextureContext<F, R, C>> for Texture<R> where
C: Buffer<R>,
F: Factory<R>,
R: Resources,
C: Buffer<R>,
F: Factory<R>,
R: Resources,
type Error = Error
The error when updating texture.
fn update<O, S>(
&mut self,
context: &mut TextureContext<F, R, C>,
format: Format,
memory: &[u8],
offset: O,
size: S
) -> Result<(), <Texture<R> as UpdateTexture<TextureContext<F, R, C>>>::Error> where
O: Into<[u32; 2]>,
S: Into<[u32; 2]>,
&mut self,
context: &mut TextureContext<F, R, C>,
format: Format,
memory: &[u8],
offset: O,
size: S
) -> Result<(), <Texture<R> as UpdateTexture<TextureContext<F, R, C>>>::Error> where
O: Into<[u32; 2]>,
S: Into<[u32; 2]>,
impl<F, R, C> CreateTexture<TextureContext<F, R, C>> for Texture<R> where
C: Buffer<R>,
F: Factory<R>,
R: Resources,
C: Buffer<R>,
F: Factory<R>,
R: Resources,
type Error = Error
The error when creating texture.
fn create<S>(
context: &mut TextureContext<F, R, C>,
_format: Format,
memory: &[u8],
size: S,
settings: &TextureSettings
) -> Result<Texture<R>, <Texture<R> as CreateTexture<TextureContext<F, R, C>>>::Error> where
S: Into<[u32; 2]>,
context: &mut TextureContext<F, R, C>,
_format: Format,
memory: &[u8],
size: S,
settings: &TextureSettings
) -> Result<Texture<R>, <Texture<R> as CreateTexture<TextureContext<F, R, C>>>::Error> where
S: Into<[u32; 2]>,
Auto Trait Implementations
impl<F, R, C> Send for TextureContext<F, R, C> where
F: Send,
<R as Resources>::Buffer: Send + Sync,
<R as Resources>::DepthStencilView: Send + Sync,
<R as Resources>::Fence: Send + Sync,
<R as Resources>::Mapping: Send,
<R as Resources>::PipelineStateObject: Send + Sync,
<R as Resources>::Program: Send + Sync,
<R as Resources>::RenderTargetView: Send + Sync,
<R as Resources>::Sampler: Send + Sync,
<R as Resources>::Shader: Send + Sync,
<R as Resources>::ShaderResourceView: Send + Sync,
<R as Resources>::Texture: Send + Sync,
<R as Resources>::UnorderedAccessView: Send + Sync,
F: Send,
<R as Resources>::Buffer: Send + Sync,
<R as Resources>::DepthStencilView: Send + Sync,
<R as Resources>::Fence: Send + Sync,
<R as Resources>::Mapping: Send,
<R as Resources>::PipelineStateObject: Send + Sync,
<R as Resources>::Program: Send + Sync,
<R as Resources>::RenderTargetView: Send + Sync,
<R as Resources>::Sampler: Send + Sync,
<R as Resources>::Shader: Send + Sync,
<R as Resources>::ShaderResourceView: Send + Sync,
<R as Resources>::Texture: Send + Sync,
<R as Resources>::UnorderedAccessView: Send + Sync,
impl<F, R, C> Sync for TextureContext<F, R, C> where
C: Sync,
F: Sync,
<R as Resources>::Buffer: Send + Sync,
<R as Resources>::DepthStencilView: Send + Sync,
<R as Resources>::Fence: Send + Sync,
<R as Resources>::Mapping: Send,
<R as Resources>::PipelineStateObject: Send + Sync,
<R as Resources>::Program: Send + Sync,
<R as Resources>::RenderTargetView: Send + Sync,
<R as Resources>::Sampler: Send + Sync,
<R as Resources>::Shader: Send + Sync,
<R as Resources>::ShaderResourceView: Send + Sync,
<R as Resources>::Texture: Send + Sync,
<R as Resources>::UnorderedAccessView: Send + Sync,
C: Sync,
F: Sync,
<R as Resources>::Buffer: Send + Sync,
<R as Resources>::DepthStencilView: Send + Sync,
<R as Resources>::Fence: Send + Sync,
<R as Resources>::Mapping: Send,
<R as Resources>::PipelineStateObject: Send + Sync,
<R as Resources>::Program: Send + Sync,
<R as Resources>::RenderTargetView: Send + Sync,
<R as Resources>::Sampler: Send + Sync,
<R as Resources>::Shader: Send + Sync,
<R as Resources>::ShaderResourceView: Send + Sync,
<R as Resources>::Texture: Send + Sync,
<R as Resources>::UnorderedAccessView: Send + Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.