Struct bismuth::render::Texture
[−]
[src]
pub struct Texture<R, T> where
R: Resources,
T: TextureFormat, {
pub surface: Texture<R, T::Surface>,
pub view: ShaderResourceView<R, T::View>,
pub sampler: Sampler<R>,
}
Fields
surface: Texture<R, T::Surface>
view: ShaderResourceView<R, T::View>
sampler: Sampler<R>
Methods
impl<R, T> Texture<R, T> where
R: Resources,
T: TextureFormat,
T::View: Clone,
[src]
R: Resources,
T: TextureFormat,
T::View: Clone,
fn to_pipeline_data(&self) -> (ShaderResourceView<R, T::View>, Sampler<R>)
impl<R, C> Texture<R, (R8_G8_B8_A8, C)> where
R: Resources,
C: NormalizedChannel + TextureChannel + UnsignedChannel,
(R8_G8_B8_A8, C): TextureFormat,
[src]
R: Resources,
C: NormalizedChannel + TextureChannel + UnsignedChannel,
(R8_G8_B8_A8, C): TextureFormat,
impl<R> Texture<R, Rgba8> where
R: Resources,
[src]
R: Resources,
fn white<F>(factory: &mut F) -> Self where
F: Factory<R>,
F: Factory<R>,
Trait Implementations
impl<R: Clone, T: Clone> Clone for Texture<R, T> where
R: Resources,
T: TextureFormat,
T::Surface: Clone,
T::View: Clone,
[src]
R: Resources,
T: TextureFormat,
T::Surface: Clone,
T::View: Clone,
fn clone(&self) -> Texture<R, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more