#[repr(C)]pub struct RasterState {
pub m_culling_mode: CullMode,
pub m_offset_units: i32,
pub m_offset_factor: f32,
pub m_depth_clip: u8,
pub m_conservative: u8,
pub m_padding1: u8,
pub m_padding2: u8,
}Expand description
Fields§
§m_culling_mode: CullMode§m_offset_units: i32§m_offset_factor: f32§m_depth_clip: u8§m_conservative: u8§m_padding1: u8§m_padding2: u8Implementations§
Source§impl RasterState
impl RasterState
pub fn default_value() -> RasterState
pub fn set_default_value(value: RasterState)
Source§impl RasterState
impl RasterState
Source§impl RasterState
impl RasterState
Sourcepub fn ctor(
&mut self,
culling_mode: impl Into<CullMode>,
offset_units: impl Into<i32>,
offset_factor: impl Into<f32>,
depth_clip: impl Into<bool>,
)
pub fn ctor( &mut self, culling_mode: impl Into<CullMode>, offset_units: impl Into<i32>, offset_factor: impl Into<f32>, depth_clip: impl Into<bool>, )
.ctor(crate::unity_engine::rendering::cullmode::CullMode, i32, f32, bool) overload
Sourcepub fn equals(&mut self, other: impl Into<RasterState>) -> bool
pub fn equals(&mut self, other: impl Into<RasterState>) -> bool
Equals(crate::unity_engine::rendering::rasterstate::RasterState) 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 RasterState
impl RasterState
pub fn ctor_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
pub fn cctor_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for RasterState
impl ClassIdentity for RasterState
Source§impl Clone for RasterState
impl Clone for RasterState
Source§fn clone(&self) -> RasterState
fn clone(&self) -> RasterState
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 RasterState
Auto Trait Implementations§
impl Freeze for RasterState
impl RefUnwindSafe for RasterState
impl Send for RasterState
impl Sync for RasterState
impl Unpin for RasterState
impl UnwindSafe for RasterState
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)