Trait gfx::pso::DataBind
[−]
[src]
pub trait DataBind<R: Resources> { type Data; fn bind_to(
&self,
_: &mut RawDataSet<R>,
_: &Self::Data,
_: &mut Manager<R>,
_: &mut AccessInfo<R>
); }
The "bind" logic portion of the PSO component. Defines how the user data translates into the raw data set.
Associated Types
type Data
The associated "data" type - a member of the PSO "data" struct.
Required Methods
fn bind_to(
&self,
_: &mut RawDataSet<R>,
_: &Self::Data,
_: &mut Manager<R>,
_: &mut AccessInfo<R>
)
&self,
_: &mut RawDataSet<R>,
_: &Self::Data,
_: &mut Manager<R>,
_: &mut AccessInfo<R>
)
Dump the given data into the raw data set.
Implementors
impl<R: Resources, T, I> DataBind<R> for VertexBufferCommon<T, I> type Data = Buffer<R, T>;
impl<R: Resources> DataBind<R> for RawVertexBuffer type Data = RawBuffer<R>;
impl<R: Resources, T: Structure<ConstFormat>> DataBind<R> for ConstantBuffer<T> type Data = Buffer<R, T>;
impl<R: Resources> DataBind<R> for RawConstantBuffer type Data = RawBuffer<R>;
impl<R: Resources, T: ToUniform> DataBind<R> for Global<T> type Data = T;
impl<R: Resources> DataBind<R> for RawGlobal type Data = UniformValue;
impl<R: Resources, T> DataBind<R> for ShaderResource<T> type Data = ShaderResourceView<R, T>;
impl<R: Resources> DataBind<R> for RawShaderResource type Data = RawShaderResourceView<R>;
impl<R: Resources, T> DataBind<R> for UnorderedAccess<T> type Data = UnorderedAccessView<R, T>;
impl<R: Resources> DataBind<R> for Sampler type Data = Sampler<R>;
impl<R: Resources, T> DataBind<R> for TextureSampler<T> type Data = (ShaderResourceView<R, T>, Sampler<R>);
impl<R: Resources, T> DataBind<R> for RenderTarget<T> type Data = RenderTargetView<R, T>;
impl<R: Resources, T> DataBind<R> for BlendTarget<T> type Data = RenderTargetView<R, T>;
impl<R: Resources> DataBind<R> for RawRenderTarget type Data = RawRenderTargetView<R>;
impl<R: Resources, T> DataBind<R> for DepthTarget<T> type Data = DepthStencilView<R, T>;
impl<R: Resources, T> DataBind<R> for StencilTarget<T> type Data = (DepthStencilView<R, T>, (Stencil, Stencil));
impl<R: Resources, T> DataBind<R> for DepthStencilTarget<T> type Data = (DepthStencilView<R, T>, (Stencil, Stencil));
impl<R: Resources> DataBind<R> for Scissor type Data = Rect;
impl<R: Resources> DataBind<R> for BlendRef type Data = ColorValue;