Struct shadiertoy::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<T> Hash for TextureSampler<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Clone for TextureSampler<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for TextureSampler<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

impl<'a, T> DataLink<'a> for TextureSampler<T>
[src]

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

Create a new empty data link.

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 buffer containing multiple attributes.

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).

Attempt to enable scissor test.

impl<T> Eq for TextureSampler<T> where
    T: Eq
[src]

impl<T> PartialEq<TextureSampler<T>> for TextureSampler<T> where
    T: PartialEq<T>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Dump the given data into the raw data set.

Auto Trait Implementations

impl<T> Send for TextureSampler<T> where
    T: Send

impl<T> Sync for TextureSampler<T> where
    T: Sync