pub fn new(data: D) -> Self {
        use gfx::format::{ChannelTyped, SurfaceTyped};
        use gfx::memory::Bind;
        use gfx::memory::Usage;
        use gfx::texture::{AaMode, Kind};

        TextureBuilder {
            data: data,
            info: Info {
                kind: Kind::D2(1, 1, AaMode::Single),
                levels: 1,
                format: SurfaceFormat::get_surface_type(),
                bind: Bind::SHADER_RESOURCE,
                usage: Usage::Dynamic,
            },
            channel_type: ChannelFormat::get_channel_type(),
            sampler: SamplerInfo::new(FilterMethod::Scale, WrapMode::Clamp),
            pd: PhantomData,
        }
    }
/// Creates a new `TextureBuilder` with the given raw texture data.
Creates a new `TextureBuilder` with the given raw texture data.
Creates a new ` TextureBuilder ` with the given raw texture data .
pub fn new(data: D) -> Self {
        use gfx::format::{ChannelTyped, SurfaceTyped};
        use gfx::memory::Bind;
        use gfx::memory::Usage;
        use gfx::texture::{AaMode, Kind};
        TextureBuilder {
            data: data,
            info: Info {
                kind: Kind::D2(1, 1, AaMode::Single),
                levels: 1,
                format: SurfaceFormat::get_surface_type(),
                bind: Bind::SHADER_RESOURCE,
                usage: Usage::Dynamic,
            },
            channel_type: ChannelFormat::get_channel_type(),
            sampler: SamplerInfo::new(FilterMethod::Scale, WrapMode::Clamp),
            pd: PhantomData,
        }
    }
pub fn new ( data : D ) -> Self { use gfx :: format :: { ChannelTyped , SurfaceTyped } ; use gfx :: memory :: Bind ; use gfx :: memory :: Usage ; use gfx :: texture :: { AaMode , Kind } ; TextureBuilder { data : data , info : Info { kind : Kind :: D2 ( 1 , 1 , AaMode :: Single ) , levels : 1 , format : SurfaceFormat :: get_surface_type ( ) , bind : Bind :: SHADER_RESOURCE , usage : Usage :: Dynamic , } , channel_type : ChannelFormat :: get_channel_type ( ) , sampler : SamplerInfo :: new ( FilterMethod :: Scale , WrapMode :: Clamp ) , pd : PhantomData , } }
Creates a new `TextureBuilder` with the given raw texture data.
Creates a new ` TextureBuilder ` with the given raw texture data .
data
D
data
D