#[repr(C)]pub struct StencilOpState {
pub fail_op: StencilOp,
pub pass_op: StencilOp,
pub depth_fail_op: StencilOp,
pub compare_op: CompareOp,
pub compare_mask: u32,
pub write_mask: u32,
pub reference: u32,
}Expand description
Native structure VkStencilOpState.
Fields§
§fail_op: StencilOpNative field failOp.
pass_op: StencilOpNative field passOp.
depth_fail_op: StencilOpNative field depthFailOp.
compare_op: CompareOpNative field compareOp.
compare_mask: u32Native field compareMask.
write_mask: u32Native field writeMask.
reference: u32Native field reference.
Implementations§
Source§impl StencilOpState
impl StencilOpState
Sourcepub fn set_fail_op(self, value: StencilOp) -> Self
pub fn set_fail_op(self, value: StencilOp) -> Self
Set native field failOp without native effects.
Sourcepub fn set_pass_op(self, value: StencilOp) -> Self
pub fn set_pass_op(self, value: StencilOp) -> Self
Set native field passOp without native effects.
Sourcepub fn set_depth_fail_op(self, value: StencilOp) -> Self
pub fn set_depth_fail_op(self, value: StencilOp) -> Self
Set native field depthFailOp without native effects.
Sourcepub fn set_compare_op(self, value: CompareOp) -> Self
pub fn set_compare_op(self, value: CompareOp) -> Self
Set native field compareOp without native effects.
Sourcepub fn set_compare_mask(self, value: u32) -> Self
pub fn set_compare_mask(self, value: u32) -> Self
Set native field compareMask without native effects.
Sourcepub fn set_write_mask(self, value: u32) -> Self
pub fn set_write_mask(self, value: u32) -> Self
Set native field writeMask without native effects.
Sourcepub fn set_reference(self, value: u32) -> Self
pub fn set_reference(self, value: u32) -> Self
Set native field reference without native effects.
Trait Implementations§
Source§impl Clone for StencilOpState
impl Clone for StencilOpState
impl Copy for StencilOpState
Auto Trait Implementations§
impl Forget for StencilOpState
impl Freeze for StencilOpState
impl Move for StencilOpState
impl RefUnwindSafe for StencilOpState
impl Send for StencilOpState
impl Sync for StencilOpState
impl Unpin for StencilOpState
impl UnsafeUnpin for StencilOpState
impl UnwindSafe for StencilOpState
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