#[repr(C)]pub struct TextureDesc {Show 26 fields
pub size_mode: TextureSizeMode,
pub width: i32,
pub height: i32,
pub slices: i32,
pub scale: Vector2,
pub func: ScaleFunc,
pub depth_buffer_bits: DepthBits,
pub color_format: GraphicsFormat,
pub filter_mode: FilterMode,
pub wrap_mode: TextureWrapMode,
pub dimension: TextureDimension,
pub enable_random_write: bool,
pub use_mip_map: bool,
pub auto_generate_mips: bool,
pub is_shadow_map: bool,
pub aniso_level: i32,
pub mip_map_bias: f32,
pub enable_msaa: bool,
pub msaa_samples: MSAASamples,
pub bind_texture_ms: bool,
pub use_dynamic_scale: bool,
pub memoryless: RenderTextureMemoryless,
pub name: Il2CppString,
pub fast_memory_desc: FastMemoryDesc,
pub clear_buffer: bool,
pub clear_color: Color,
}Expand description
Fields§
§size_mode: TextureSizeMode§width: i32§height: i32§slices: i32§scale: Vector2§func: ScaleFunc§depth_buffer_bits: DepthBits§color_format: GraphicsFormat§filter_mode: FilterMode§wrap_mode: TextureWrapMode§dimension: TextureDimension§enable_random_write: bool§use_mip_map: bool§auto_generate_mips: bool§is_shadow_map: bool§aniso_level: i32§mip_map_bias: f32§enable_msaa: bool§msaa_samples: MSAASamples§bind_texture_ms: bool§use_dynamic_scale: bool§memoryless: RenderTextureMemoryless§name: Il2CppString§fast_memory_desc: FastMemoryDesc§clear_buffer: bool§clear_color: ColorImplementations§
Source§impl TextureDesc
impl TextureDesc
Sourcepub fn init_default_values(
&mut self,
dynamic_resolution: impl Into<bool>,
xr_ready: impl Into<bool>,
)
pub fn init_default_values( &mut self, dynamic_resolution: impl Into<bool>, xr_ready: impl Into<bool>, )
InitDefaultValues(bool, bool) overload
Sourcepub fn ctor(
&mut self,
width: impl Into<i32>,
height: impl Into<i32>,
dynamic_resolution: impl Into<bool>,
xr_ready: impl Into<bool>,
)
pub fn ctor( &mut self, width: impl Into<i32>, height: impl Into<i32>, dynamic_resolution: impl Into<bool>, xr_ready: impl Into<bool>, )
.ctor(i32, i32, bool, bool) overload
Sourcepub fn ctor_2(
&mut self,
scale: impl Into<Vector2>,
dynamic_resolution: impl Into<bool>,
xr_ready: impl Into<bool>,
)
pub fn ctor_2( &mut self, scale: impl Into<Vector2>, dynamic_resolution: impl Into<bool>, xr_ready: impl Into<bool>, )
.ctor(crate::unity_engine::vector2::Vector2, bool, bool) overload
Sourcepub fn ctor_3(
&mut self,
func: impl Into<ScaleFunc>,
dynamic_resolution: impl Into<bool>,
xr_ready: impl Into<bool>,
)
pub fn ctor_3( &mut self, func: impl Into<ScaleFunc>, dynamic_resolution: impl Into<bool>, xr_ready: impl Into<bool>, )
.ctor(crate::unity_engine::rendering::scalefunc::ScaleFunc, bool, bool) overload
Sourcepub fn ctor_4(&mut self, input: impl Into<TextureDesc>)
pub fn ctor_4(&mut self, input: impl Into<TextureDesc>)
.ctor(crate::unity_engine::experimental::rendering::render_graph_module::texturedesc::TextureDesc) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Source§impl TextureDesc
impl TextureDesc
pub fn init_default_values_method_info() -> &'static MethodInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn ctor_2_method_info() -> &'static MethodInfo
pub fn ctor_3_method_info() -> &'static MethodInfo
pub fn ctor_4_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for TextureDesc
impl ClassIdentity for TextureDesc
Source§impl Clone for TextureDesc
impl Clone for TextureDesc
Source§fn clone(&self) -> TextureDesc
fn clone(&self) -> TextureDesc
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 moreSource§impl IRenderGraphResourceRegistry_RenderGraphResource_2<TextureDesc, RTHandle> for RenderGraphResourceRegistry_TextureResource
impl IRenderGraphResourceRegistry_RenderGraphResource_2<TextureDesc, RTHandle> for RenderGraphResourceRegistry_TextureResource
impl Copy for TextureDesc
Auto Trait Implementations§
impl Freeze for TextureDesc
impl RefUnwindSafe for TextureDesc
impl !Send for TextureDesc
impl !Sync for TextureDesc
impl Unpin for TextureDesc
impl UnwindSafe for TextureDesc
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)