Skip to main content

IPostProcessPassMethods

Trait IPostProcessPassMethods 

Source
pub trait IPostProcessPassMethods: IPostProcessPass {
Show 46 methods // Provided methods fn get_simple_pass_flag(self) -> bool { ... } fn set_simple_pass_flag(self, value: impl Into<bool>) { ... } fn ctor( self, evt: impl Into<RenderPassEvent>, data: impl Into<PostProcessData>, blit_material: impl Into<Material>, ) { ... } fn cleanup(self) { ... } fn setup( self, has_final_pass: impl Into<bool>, enable_srgb_conversion: impl Into<bool>, ) -> (RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle) { ... } fn setup_with_extra( self, has_final_pass: impl Into<bool>, enable_srgb_conversion: impl Into<bool>, sharpen: impl Into<bool>, custom_blur_enabled: impl Into<bool>, custom_blur_times: impl Into<i32>, custom_final_mono_color: impl Into<Color>, custom_final_mono_color_rate: impl Into<f32>, ) -> (RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle) { ... } fn setup_custom_filter_params( self, color: impl Into<Color>, sat: impl Into<f32>, ratio: impl Into<f32>, white_ratio: impl Into<f32>, white_point: impl Into<f32>, ) { ... } fn create_capture_texture( self, width: impl Into<i32>, height: impl Into<i32>, ) { ... } fn destroy_capture_texture(self) { ... } fn setup_final_pass( self, need_capture: impl Into<bool>, ) -> RenderTargetHandle { ... } fn setup_final_pass_as_copy_capture(self) { ... } fn on_camera_setup(self, cmd: impl Into<CommandBuffer>) -> RenderingData { ... } fn on_camera_cleanup(self, cmd: impl Into<CommandBuffer>) { ... } fn reset_history(self) { ... } fn can_run_on_tile(self) -> bool { ... } fn execute( self, context: impl Into<ScriptableRenderContext>, ) -> RenderingData { ... } fn get_compatible_descriptor(self) -> RenderTextureDescriptor { ... } fn get_compatible_descriptor_2( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, depth_buffer_bits: impl Into<i32>, ) -> RenderTextureDescriptor { ... } fn require_srgb_conversion_blit_to_back_buffer( self, camera_data: impl Into<CameraData>, ) -> bool { ... } fn blit( self, cmd: impl Into<CommandBuffer>, source: impl Into<RenderTargetIdentifier>, destination: impl Into<RenderTargetIdentifier>, material: impl Into<Material>, pass_index: impl Into<i32>, ) { ... } fn draw_fullscreen_mesh( self, cmd: impl Into<CommandBuffer>, material: impl Into<Material>, pass_index: impl Into<i32>, ) { ... } fn render(self, cmd: impl Into<CommandBuffer>) -> RenderingData { ... } fn render_simple_pass(self, cmd: impl Into<CommandBuffer>) -> RenderingData { ... } fn blit_dst_discard_content( self, cmd: impl Into<CommandBuffer>, rt: impl Into<RenderTargetIdentifier>, ) -> BuiltinRenderTextureType { ... } fn do_subpixel_morphological_antialiasing( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, ) -> CameraData { ... } fn do_depth_of_field( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, ) { ... } fn do_gaussian_depth_of_field( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, ) { ... } fn prepare_bokeh_kernel(self) { ... } fn do_bokeh_depth_of_field( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, ) { ... } fn do_motion_blur( self, camera_data: impl Into<CameraData>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, ) { ... } fn do_panini_projection( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, ) { ... } fn calc_view_extents(self, camera: impl Into<Camera>) -> Vector2 { ... } fn calc_crop_extents( self, camera: impl Into<Camera>, d: impl Into<f32>, ) -> Vector2 { ... } fn setup_bloom( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, ) { ... } fn setup_lens_distortion( self, material: impl Into<Material>, is_scene_view: impl Into<bool>, ) { ... } fn setup_chromatic_aberration(self, material: impl Into<Material>) { ... } fn setup_vignette(self, material: impl Into<Material>) { ... } fn setup_color_grading( self, cmd: impl Into<CommandBuffer>, material: impl Into<Material>, ) -> RenderingData { ... } fn setup_grain(self, material: impl Into<Material>) -> CameraData { ... } fn setup_dithering(self, material: impl Into<Material>) -> CameraData { ... } fn setup_custom_heat_haze( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, ) { ... } fn setup_custom_radial_blur( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, ) { ... } fn setup_custom_system_blur( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, bloom_active: impl Into<bool>, ) { ... } fn setup_custom_gradation_filter(self, material: impl Into<Material>) { ... } fn render_final_pass(self, cmd: impl Into<CommandBuffer>) -> RenderingData { ... } fn render_final_pass_as_copy_capture( self, cmd: impl Into<CommandBuffer>, ) -> RenderingData { ... }
}

Provided Methods§

Source

fn get_simple_pass_flag(self) -> bool

get_simplePassFlag() overload

Source

fn set_simple_pass_flag(self, value: impl Into<bool>)

set_simplePassFlag(bool) overload

Source

fn ctor( self, evt: impl Into<RenderPassEvent>, data: impl Into<PostProcessData>, blit_material: impl Into<Material>, )

.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::rendering::universal::postprocessdata::PostProcessData, crate::unity_engine::material::Material) overload

Source

fn cleanup(self)

Cleanup() overload

Source

fn setup( self, has_final_pass: impl Into<bool>, enable_srgb_conversion: impl Into<bool>, ) -> (RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle)

Setup(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, bool, bool) overload

Source

fn setup_with_extra( self, has_final_pass: impl Into<bool>, enable_srgb_conversion: impl Into<bool>, sharpen: impl Into<bool>, custom_blur_enabled: impl Into<bool>, custom_blur_times: impl Into<i32>, custom_final_mono_color: impl Into<Color>, custom_final_mono_color_rate: impl Into<f32>, ) -> (RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle, RenderTargetHandle)

SetupWithExtra(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, *mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, bool, bool, bool, bool, i32, crate::unity_engine::color::Color, f32) overload

Source

fn setup_custom_filter_params( self, color: impl Into<Color>, sat: impl Into<f32>, ratio: impl Into<f32>, white_ratio: impl Into<f32>, white_point: impl Into<f32>, )

SetupCustomFilterParams(crate::unity_engine::color::Color, f32, f32, f32, f32) overload

Source

fn create_capture_texture(self, width: impl Into<i32>, height: impl Into<i32>)

CreateCaptureTexture(i32, i32) overload

Source

fn destroy_capture_texture(self)

DestroyCaptureTexture() overload

Source

fn setup_final_pass(self, need_capture: impl Into<bool>) -> RenderTargetHandle

SetupFinalPass(*mutcrate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, bool) overload

Source

fn setup_final_pass_as_copy_capture(self)

SetupFinalPassAsCopyCapture() overload

Source

fn on_camera_setup(self, cmd: impl Into<CommandBuffer>) -> RenderingData

OnCameraSetup(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Source

fn on_camera_cleanup(self, cmd: impl Into<CommandBuffer>)

OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer) overload

Source

fn reset_history(self)

ResetHistory() overload

Source

fn can_run_on_tile(self) -> bool

CanRunOnTile() overload

Source

fn execute(self, context: impl Into<ScriptableRenderContext>) -> RenderingData

Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Source

fn get_compatible_descriptor(self) -> RenderTextureDescriptor

GetCompatibleDescriptor() overload

Source

fn get_compatible_descriptor_2( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, depth_buffer_bits: impl Into<i32>, ) -> RenderTextureDescriptor

GetCompatibleDescriptor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, i32) overload

Source

fn require_srgb_conversion_blit_to_back_buffer( self, camera_data: impl Into<CameraData>, ) -> bool

RequireSRGBConversionBlitToBackBuffer(crate::unity_engine::rendering::universal::cameradata::CameraData) overload

Source

fn blit( self, cmd: impl Into<CommandBuffer>, source: impl Into<RenderTargetIdentifier>, destination: impl Into<RenderTargetIdentifier>, material: impl Into<Material>, pass_index: impl Into<i32>, )

Blit(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::unity_engine::material::Material, i32) overload

Source

fn draw_fullscreen_mesh( self, cmd: impl Into<CommandBuffer>, material: impl Into<Material>, pass_index: impl Into<i32>, )

DrawFullscreenMesh(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::material::Material, i32) overload

Source

fn render(self, cmd: impl Into<CommandBuffer>) -> RenderingData

Render(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Source

fn render_simple_pass(self, cmd: impl Into<CommandBuffer>) -> RenderingData

RenderSimplePass(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Source

fn blit_dst_discard_content( self, cmd: impl Into<CommandBuffer>, rt: impl Into<RenderTargetIdentifier>, ) -> BuiltinRenderTextureType

BlitDstDiscardContent(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier) overload

Source

fn do_subpixel_morphological_antialiasing( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, ) -> CameraData

DoSubpixelMorphologicalAntialiasing(*mutcrate::unity_engine::rendering::universal::cameradata::CameraData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32) overload

Source

fn do_depth_of_field( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, )

DoDepthOfField(crate::unity_engine::camera::Camera, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32, crate::unity_engine::rect::Rect) overload

Source

fn do_gaussian_depth_of_field( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, )

DoGaussianDepthOfField(crate::unity_engine::camera::Camera, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32, crate::unity_engine::rect::Rect) overload

Source

fn prepare_bokeh_kernel(self)

PrepareBokehKernel() overload

Source

fn do_bokeh_depth_of_field( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, pixel_rect: impl Into<Rect>, )

DoBokehDepthOfField(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32, crate::unity_engine::rect::Rect) overload

Source

fn do_motion_blur( self, camera_data: impl Into<CameraData>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, )

DoMotionBlur(crate::unity_engine::rendering::universal::cameradata::CameraData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32) overload

Source

fn do_panini_projection( self, camera: impl Into<Camera>, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, destination: impl Into<i32>, )

DoPaniniProjection(crate::unity_engine::camera::Camera, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, i32) overload

Source

fn calc_view_extents(self, camera: impl Into<Camera>) -> Vector2

CalcViewExtents(crate::unity_engine::camera::Camera) overload

Source

fn calc_crop_extents( self, camera: impl Into<Camera>, d: impl Into<f32>, ) -> Vector2

CalcCropExtents(crate::unity_engine::camera::Camera, f32) overload

Source

fn setup_bloom( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, )

SetupBloom(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::material::Material) overload

Source

fn setup_lens_distortion( self, material: impl Into<Material>, is_scene_view: impl Into<bool>, )

SetupLensDistortion(crate::unity_engine::material::Material, bool) overload

Source

fn setup_chromatic_aberration(self, material: impl Into<Material>)

SetupChromaticAberration(crate::unity_engine::material::Material) overload

Source

fn setup_vignette(self, material: impl Into<Material>)

SetupVignette(crate::unity_engine::material::Material) overload

Source

fn setup_color_grading( self, cmd: impl Into<CommandBuffer>, material: impl Into<Material>, ) -> RenderingData

SetupColorGrading(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::material::Material) overload

Source

fn setup_grain(self, material: impl Into<Material>) -> CameraData

SetupGrain(*mutcrate::unity_engine::rendering::universal::cameradata::CameraData, crate::unity_engine::material::Material) overload

Source

fn setup_dithering(self, material: impl Into<Material>) -> CameraData

SetupDithering(*mutcrate::unity_engine::rendering::universal::cameradata::CameraData, crate::unity_engine::material::Material) overload

Source

fn setup_custom_heat_haze( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, )

SetupCustomHeatHaze(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::material::Material) overload

Source

fn setup_custom_radial_blur( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, )

SetupCustomRadialBlur(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::material::Material) overload

Source

fn setup_custom_system_blur( self, cmd: impl Into<CommandBuffer>, source: impl Into<i32>, uber_material: impl Into<Material>, bloom_active: impl Into<bool>, )

SetupCustomSystemBlur(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::material::Material, bool) overload

Source

fn setup_custom_gradation_filter(self, material: impl Into<Material>)

SetupCustomGradationFilter(crate::unity_engine::material::Material) overload

Source

fn render_final_pass(self, cmd: impl Into<CommandBuffer>) -> RenderingData

RenderFinalPass(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Source

fn render_final_pass_as_copy_capture( self, cmd: impl Into<CommandBuffer>, ) -> RenderingData

RenderFinalPassAsCopyCapture(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IPostProcessPass> IPostProcessPassMethods for __T

Available on crate feature unity_engine-rendering-universal-internal-postprocesspass only.