#[repr(C)]pub struct DepthState {
pub m_write_enabled: u8,
pub m_compare_function: i8,
}Expand description
Fields§
§m_write_enabled: u8§m_compare_function: i8Implementations§
Source§impl DepthState
impl DepthState
Sourcepub fn get_default_value() -> DepthState
pub fn get_default_value() -> DepthState
get_defaultValue() overload
Source§impl DepthState
impl DepthState
Sourcepub fn ctor(
&mut self,
write_enabled: impl Into<bool>,
compare_function: impl Into<CompareFunction>,
)
pub fn ctor( &mut self, write_enabled: impl Into<bool>, compare_function: impl Into<CompareFunction>, )
.ctor(bool, crate::unity_engine::rendering::comparefunction::CompareFunction) overload
Sourcepub fn set_write_enabled(&mut self, value: impl Into<bool>)
pub fn set_write_enabled(&mut self, value: impl Into<bool>)
set_writeEnabled(bool) overload
Sourcepub fn set_compare_function(&mut self, value: impl Into<CompareFunction>)
pub fn set_compare_function(&mut self, value: impl Into<CompareFunction>)
set_compareFunction(crate::unity_engine::rendering::comparefunction::CompareFunction) overload
Sourcepub fn equals(&mut self, other: impl Into<DepthState>) -> bool
pub fn equals(&mut self, other: impl Into<DepthState>) -> bool
Equals(crate::unity_engine::rendering::depthstate::DepthState) overload
Sourcepub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
pub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Source§impl DepthState
impl DepthState
pub fn get_default_value_method_info() -> &'static MethodInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn set_write_enabled_method_info() -> &'static MethodInfo
pub fn set_compare_function_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for DepthState
impl ClassIdentity for DepthState
Source§impl Clone for DepthState
impl Clone for DepthState
Source§fn clone(&self) -> DepthState
fn clone(&self) -> DepthState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DepthState
Auto Trait Implementations§
impl Freeze for DepthState
impl RefUnwindSafe for DepthState
impl Send for DepthState
impl Sync for DepthState
impl Unpin for DepthState
impl UnwindSafe for DepthState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)