#[repr(C)]pub struct RenderTextureDescriptor {
pub graphics_format: GraphicsFormat,
pub depth_buffer_bits: i32,
pub flags: RenderTextureCreationFlags,
}Expand description
Fields§
§graphics_format: GraphicsFormat§depth_buffer_bits: i32§flags: RenderTextureCreationFlagsImplementations§
Source§impl RenderTextureDescriptor
impl RenderTextureDescriptor
pub fn depth_format_bits() -> Array<i32>
pub fn set_depth_format_bits(value: Array<i32>)
Source§impl RenderTextureDescriptor
impl RenderTextureDescriptor
Sourcepub fn get_height(&mut self) -> i32
pub fn get_height(&mut self) -> i32
get_height() overload
Sourcepub fn set_height(&mut self, value: impl Into<i32>)
pub fn set_height(&mut self, value: impl Into<i32>)
set_height(i32) overload
Sourcepub fn get_msaa_samples(&mut self) -> i32
pub fn get_msaa_samples(&mut self) -> i32
get_msaaSamples() overload
Sourcepub fn set_msaa_samples(&mut self, value: impl Into<i32>)
pub fn set_msaa_samples(&mut self, value: impl Into<i32>)
set_msaaSamples(i32) overload
Sourcepub fn get_volume_depth(&mut self) -> i32
pub fn get_volume_depth(&mut self) -> i32
get_volumeDepth() overload
Sourcepub fn set_volume_depth(&mut self, value: impl Into<i32>)
pub fn set_volume_depth(&mut self, value: impl Into<i32>)
set_volumeDepth(i32) overload
Sourcepub fn get_mip_count(&mut self) -> i32
pub fn get_mip_count(&mut self) -> i32
get_mipCount() overload
Sourcepub fn set_mip_count(&mut self, value: impl Into<i32>)
pub fn set_mip_count(&mut self, value: impl Into<i32>)
set_mipCount(i32) overload
Sourcepub fn get_graphics_format(&mut self) -> GraphicsFormat
pub fn get_graphics_format(&mut self) -> GraphicsFormat
get_graphicsFormat() overload
Sourcepub fn set_graphics_format(&mut self, value: impl Into<GraphicsFormat>)
pub fn set_graphics_format(&mut self, value: impl Into<GraphicsFormat>)
set_graphicsFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload
Sourcepub fn set_stencil_format(&mut self, value: impl Into<GraphicsFormat>)
pub fn set_stencil_format(&mut self, value: impl Into<GraphicsFormat>)
set_stencilFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload
Sourcepub fn get_color_format(&mut self) -> RenderTextureFormat
pub fn get_color_format(&mut self) -> RenderTextureFormat
get_colorFormat() overload
Sourcepub fn set_color_format(&mut self, value: impl Into<RenderTextureFormat>)
pub fn set_color_format(&mut self, value: impl Into<RenderTextureFormat>)
set_colorFormat(crate::unity_engine::rendertextureformat::RenderTextureFormat) overload
Sourcepub fn get_depth_buffer_bits(&mut self) -> i32
pub fn get_depth_buffer_bits(&mut self) -> i32
get_depthBufferBits() overload
Sourcepub fn set_depth_buffer_bits(&mut self, value: impl Into<i32>)
pub fn set_depth_buffer_bits(&mut self, value: impl Into<i32>)
set_depthBufferBits(i32) overload
Sourcepub fn get_dimension(&mut self) -> TextureDimension
pub fn get_dimension(&mut self) -> TextureDimension
get_dimension() overload
Sourcepub fn set_dimension(&mut self, value: impl Into<TextureDimension>)
pub fn set_dimension(&mut self, value: impl Into<TextureDimension>)
set_dimension(crate::unity_engine::rendering::texturedimension::TextureDimension) overload
Sourcepub fn set_shadow_sampling_mode(&mut self, value: impl Into<ShadowSamplingMode>)
pub fn set_shadow_sampling_mode(&mut self, value: impl Into<ShadowSamplingMode>)
set_shadowSamplingMode(crate::unity_engine::rendering::shadowsamplingmode::ShadowSamplingMode) overload
Sourcepub fn get_vr_usage(&mut self) -> VRTextureUsage
pub fn get_vr_usage(&mut self) -> VRTextureUsage
get_vrUsage() overload
Sourcepub fn set_vr_usage(&mut self, value: impl Into<VRTextureUsage>)
pub fn set_vr_usage(&mut self, value: impl Into<VRTextureUsage>)
set_vrUsage(crate::unity_engine::vrtextureusage::VRTextureUsage) overload
Sourcepub fn set_memoryless(&mut self, value: impl Into<RenderTextureMemoryless>)
pub fn set_memoryless(&mut self, value: impl Into<RenderTextureMemoryless>)
set_memoryless(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless) overload
Sourcepub fn ctor_2(
&mut self,
width: impl Into<i32>,
height: impl Into<i32>,
color_format: impl Into<GraphicsFormat>,
depth_buffer_bits: impl Into<i32>,
)
pub fn ctor_2( &mut self, width: impl Into<i32>, height: impl Into<i32>, color_format: impl Into<GraphicsFormat>, depth_buffer_bits: impl Into<i32>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, i32) overload
Sourcepub fn ctor_3(
&mut self,
width: impl Into<i32>,
height: impl Into<i32>,
color_format: impl Into<RenderTextureFormat>,
depth_buffer_bits: impl Into<i32>,
mip_count: impl Into<i32>,
)
pub fn ctor_3( &mut self, width: impl Into<i32>, height: impl Into<i32>, color_format: impl Into<RenderTextureFormat>, depth_buffer_bits: impl Into<i32>, mip_count: impl Into<i32>, )
.ctor(i32, i32, crate::unity_engine::rendertextureformat::RenderTextureFormat, i32, i32) overload
Sourcepub fn ctor_4(
&mut self,
width: impl Into<i32>,
height: impl Into<i32>,
color_format: impl Into<GraphicsFormat>,
depth_buffer_bits: impl Into<i32>,
mip_count: impl Into<i32>,
)
pub fn ctor_4( &mut self, width: impl Into<i32>, height: impl Into<i32>, color_format: impl Into<GraphicsFormat>, depth_buffer_bits: impl Into<i32>, mip_count: impl Into<i32>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, i32, i32) overload
Sourcepub fn set_or_clear_render_texture_creation_flag(
&mut self,
value: impl Into<bool>,
flag: impl Into<RenderTextureCreationFlags>,
)
pub fn set_or_clear_render_texture_creation_flag( &mut self, value: impl Into<bool>, flag: impl Into<RenderTextureCreationFlags>, )
SetOrClearRenderTextureCreationFlag(bool, crate::unity_engine::rendertexturecreationflags::RenderTextureCreationFlags) overload
Sourcepub fn set_use_mip_map(&mut self, value: impl Into<bool>)
pub fn set_use_mip_map(&mut self, value: impl Into<bool>)
set_useMipMap(bool) overload
Sourcepub fn set_auto_generate_mips(&mut self, value: impl Into<bool>)
pub fn set_auto_generate_mips(&mut self, value: impl Into<bool>)
set_autoGenerateMips(bool) overload
Sourcepub fn set_enable_random_write(&mut self, value: impl Into<bool>)
pub fn set_enable_random_write(&mut self, value: impl Into<bool>)
set_enableRandomWrite(bool) overload
Sourcepub fn set_bind_ms(&mut self, value: impl Into<bool>)
pub fn set_bind_ms(&mut self, value: impl Into<bool>)
set_bindMS(bool) overload
Sourcepub fn set_created_from_script(&mut self, value: impl Into<bool>)
pub fn set_created_from_script(&mut self, value: impl Into<bool>)
set_createdFromScript(bool) overload
Sourcepub fn get_use_dynamic_scale(&mut self) -> bool
pub fn get_use_dynamic_scale(&mut self) -> bool
get_useDynamicScale() overload
Sourcepub fn set_use_dynamic_scale(&mut self, value: impl Into<bool>)
pub fn set_use_dynamic_scale(&mut self, value: impl Into<bool>)
set_useDynamicScale(bool) overload
Source§impl RenderTextureDescriptor
impl RenderTextureDescriptor
pub fn get_width_method_info() -> &'static MethodInfo
pub fn set_width_method_info() -> &'static MethodInfo
pub fn get_height_method_info() -> &'static MethodInfo
pub fn set_height_method_info() -> &'static MethodInfo
pub fn get_msaa_samples_method_info() -> &'static MethodInfo
pub fn set_msaa_samples_method_info() -> &'static MethodInfo
pub fn get_volume_depth_method_info() -> &'static MethodInfo
pub fn set_volume_depth_method_info() -> &'static MethodInfo
pub fn get_mip_count_method_info() -> &'static MethodInfo
pub fn set_mip_count_method_info() -> &'static MethodInfo
pub fn get_graphics_format_method_info() -> &'static MethodInfo
pub fn set_graphics_format_method_info() -> &'static MethodInfo
pub fn set_stencil_format_method_info() -> &'static MethodInfo
pub fn get_color_format_method_info() -> &'static MethodInfo
pub fn set_color_format_method_info() -> &'static MethodInfo
pub fn get_s_rgb_method_info() -> &'static MethodInfo
pub fn set_s_rgb_method_info() -> &'static MethodInfo
pub fn get_depth_buffer_bits_method_info() -> &'static MethodInfo
pub fn set_depth_buffer_bits_method_info() -> &'static MethodInfo
pub fn get_dimension_method_info() -> &'static MethodInfo
pub fn set_dimension_method_info() -> &'static MethodInfo
pub fn set_shadow_sampling_mode_method_info() -> &'static MethodInfo
pub fn get_vr_usage_method_info() -> &'static MethodInfo
pub fn set_vr_usage_method_info() -> &'static MethodInfo
pub fn set_memoryless_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 set_or_clear_render_texture_creation_flag_method_info() -> &'static MethodInfo
pub fn set_use_mip_map_method_info() -> &'static MethodInfo
pub fn set_auto_generate_mips_method_info() -> &'static MethodInfo
pub fn set_enable_random_write_method_info() -> &'static MethodInfo
pub fn set_bind_ms_method_info() -> &'static MethodInfo
pub fn set_created_from_script_method_info() -> &'static MethodInfo
pub fn get_use_dynamic_scale_method_info() -> &'static MethodInfo
pub fn set_use_dynamic_scale_method_info() -> &'static MethodInfo
pub fn cctor_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl Clone for RenderTextureDescriptor
impl Clone for RenderTextureDescriptor
Source§fn clone(&self) -> RenderTextureDescriptor
fn clone(&self) -> RenderTextureDescriptor
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RenderTextureDescriptor
Auto Trait Implementations§
impl Freeze for RenderTextureDescriptor
impl RefUnwindSafe for RenderTextureDescriptor
impl Send for RenderTextureDescriptor
impl Sync for RenderTextureDescriptor
impl Unpin for RenderTextureDescriptor
impl UnwindSafe for RenderTextureDescriptor
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
§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)
clone_to_uninit)