[][src]Struct dxplr::d3d11::DepthStencilDesc

pub struct DepthStencilDesc {
    pub depth_enable: bool,
    pub depth_write_mask: DepthWriteMask,
    pub depth_func: ComparisonFunc,
    pub stencil_enable: bool,
    pub stencil_read_mask: u8,
    pub stencil_write_mask: u8,
    pub front_face: DepthStencilOpDesc,
    pub back_face: DepthStencilOpDesc,
}

Fields

depth_enable: booldepth_write_mask: DepthWriteMaskdepth_func: ComparisonFuncstencil_enable: boolstencil_read_mask: u8stencil_write_mask: u8front_face: DepthStencilOpDescback_face: DepthStencilOpDesc

Methods

impl DepthStencilDesc[src]

pub fn new() -> Self[src]

pub fn depth_enable(self, depth_enable: bool) -> Self[src]

pub fn depth_write_mask(self, depth_write_mask: DepthWriteMask) -> Self[src]

pub fn depth_func(self, depth_func: ComparisonFunc) -> Self[src]

pub fn stencil_enable(self, stencil_enable: bool) -> Self[src]

pub fn stencil_read_mask(self, stencil_read_mask: u8) -> Self[src]

pub fn stencil_write_mask(self, stencil_write_mask: u8) -> Self[src]

pub fn front_face(self, front_face: DepthStencilOpDesc) -> Self[src]

pub fn back_face(self, back_face: DepthStencilOpDesc) -> Self[src]

Trait Implementations

impl Clone for DepthStencilDesc[src]

impl Debug for DepthStencilDesc[src]

impl Default for DepthStencilDesc[src]

impl From<D3D11_DEPTH_STENCIL_DESC> for DepthStencilDesc[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.