Trait luminance::backend::pipeline::PipelineTexture[][src]

pub unsafe trait PipelineTexture<D, P>: PipelineBase + Texture<D, P> where
    D: Dimensionable,
    P: Pixel
{ type BoundTextureRepr; unsafe fn bind_texture(
        pipeline: &Self::PipelineRepr,
        texture: &Self::TextureRepr
    ) -> Result<Self::BoundTextureRepr, PipelineError>
    where
        D: Dimensionable,
        P: Pixel
;
unsafe fn texture_binding(bound: &Self::BoundTextureRepr) -> u32; }
Expand description

Operations that can be run on pipelines and textures.

This trait requires PipelineBase and Texture.

Associated Types

Representation of a bound Texture on the backend.

Required methods

Bind a Texture to the current Pipeline.

This method must bind the texture on the backend and return an object representing the bound texture. Must of the time, this bound representation will also implement Drop so that backend resources are freed and recycled on the next bind.

Get the u32 representation of the bound texture, also known as binding.

Implementors