[−][src]Struct web_glitz::rendering::DefaultStencilBuffer
Represents the depth-stencil buffer for a [DefaultRenderTarget] with only a stencil channel and no depth channel.
Implementations
impl DefaultStencilBuffer[src]
pub fn clear_command(
&self,
stencil: i32,
region: Region2D
) -> ClearStencilCommand[src]
&self,
stencil: i32,
region: Region2D
) -> ClearStencilCommand
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.
Auto Trait Implementations
impl RefUnwindSafe for DefaultStencilBuffer
impl Send for DefaultStencilBuffer
impl Sync for DefaultStencilBuffer
impl Unpin for DefaultStencilBuffer
impl UnwindSafe for DefaultStencilBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,