[][src]Struct web_glitz::render_pass::StencilBuffer

pub struct StencilBuffer<F> where
    F: StencilRenderable
{ /* fields omitted */ }

Methods

impl<F> StencilBuffer<F> where
    F: StencilRenderable
[src]

pub fn clear_command(
    &self,
    stencil: i32,
    region: Region2D
) -> ClearStencilCommand
[src]

Returns a command that clears all stencil values in the region to stencil.

Values outside the region are unaffected.

Examples

The following command will clear the entire depth-stencil buffer to a stencil value of 0:

let command = buffer.clear_command(0, Region2D::Fill);

It's also possible to only clear a specific rectangular area of the buffer:

let command = buffer.clear_command(0, Region2D::Area((0, 0), 100, 100));

See also Region2D.

Trait Implementations

impl<F> RenderingOutputBuffer for StencilBuffer<F> where
    F: StencilRenderable
[src]

type Format = F

The type image storage format used by the buffer.

Auto Trait Implementations

impl<F> Send for StencilBuffer<F> where
    F: Send

impl<F> Unpin for StencilBuffer<F>

impl<F> Sync for StencilBuffer<F> where
    F: Sync

impl<F> UnwindSafe for StencilBuffer<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for StencilBuffer<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]