Struct gfx::pso::resource::TextureSampler [] [src]

pub struct TextureSampler<T>(_, _);
[]

A convenience type for a texture paired with a sampler. It only makes sense for DX9 class hardware, where every texture by default is bundled with a sampler, hence they are represented by the same name. In DX10 and higher samplers are totally separated from the textures. - init: &str = name of the sampler/texture (assuming they match) - data: (ShaderResourceView<T>, Sampler)

Trait Implementations

impl<'a, T> DataLink<'a> for TextureSampler<T>

type Init = &'a str

fn new() -> Self

fn is_active(&self) -> bool

impl<R: Resources, T> DataBind<R> for TextureSampler<T>

type Data = (ShaderResourceView<R, T>, Sampler<R>)

fn bind_to(&self, out: &mut RawDataSet<R>, data: &Self::Data, man: &mut Manager<R>)