pub struct ShaderStencilOp {
pub pass: ShaderValue,
pub fail: ShaderValue,
pub z_fail: ShaderValue,
pub comp: ShaderValue,
}Expand description
A stencil face’s operations (SerializedStencilOp): Unity’s StencilOp for pass, fail and depth-fail, and its
CompareFunction (0 disabled, 1 never, 2 less, 3 equal, 4 less or equal, 5 greater, 6 not equal, 7 greater or
equal, 8 always).
Fields§
§pass: ShaderValueThe operation when the stencil and depth tests pass.
fail: ShaderValueThe operation when the stencil test fails.
z_fail: ShaderValueThe operation when the depth test fails.
comp: ShaderValueThe stencil comparison.
Trait Implementations§
Source§impl Clone for ShaderStencilOp
impl Clone for ShaderStencilOp
Source§impl Debug for ShaderStencilOp
impl Debug for ShaderStencilOp
Source§impl PartialEq for ShaderStencilOp
impl PartialEq for ShaderStencilOp
Source§impl Serialize for ShaderStencilOp
impl Serialize for ShaderStencilOp
impl StructuralPartialEq for ShaderStencilOp
Auto Trait Implementations§
impl Freeze for ShaderStencilOp
impl RefUnwindSafe for ShaderStencilOp
impl Send for ShaderStencilOp
impl Sync for ShaderStencilOp
impl Unpin for ShaderStencilOp
impl UnsafeUnpin for ShaderStencilOp
impl UnwindSafe for ShaderStencilOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more