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>
[src]

type Init = &'a str

The assotiated "init" type - a member of the PSO "init" struct.

fn new() -> Self

Create a new empty data link.

fn is_active(&self) -> bool

Check if this link is actually used by the shader.

Attempt to link with a shader resource (SRV).

Attempt to link with a sampler.

Attempt to link with a vertex attribute.

Attempt to link with a constant buffer.

Attempt to link with a global constant.

Attempt to link with an output render target (RTV).

Attempt to link with a depth-stencil target (DSV).

Attempt to link with an unordered access (UAV).

impl<R: Resources, T> DataBind<R> for TextureSampler<T>
[src]

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

The associated "data" type - a member of the PSO "data" struct.

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

Dump the given data into the raw data set.