#[repr(C, align(16))]pub struct ConvolveSettings {Show 31 fields
pub process_region: IVec4,
pub full_region: IVec4,
pub resolution: UVec2,
pub filter_resolution: UVec2,
pub center: Vec2,
pub flags: u32,
pub non_uniform_flags: u32,
pub samples: u32,
pub pixel_aspect: f32,
pub size: f32,
pub max_size: f32,
pub catseye_amount: f32,
pub catseye_gamma: f32,
pub catseye_softness: f32,
pub astigmatism_amount: f32,
pub astigmatism_gamma: f32,
pub barndoors_amount: f32,
pub barndoors_gamma: f32,
pub barndoors_top: f32,
pub barndoors_bottom: f32,
pub barndoors_left: f32,
pub barndoors_right: f32,
pub filter_aspect_ratio_normalizer: f32,
pub image_elements: u32,
pub ring_distance: f32,
pub filter_aspect_ratio: f32,
pub pixel_aspect_normalizer: f32,
pub render_scale: u32,
pub axial_aberration_amount: f32,
pub axial_aberration_type: i32,
pub _padding: u32,
}Expand description
Settings structure for convolution operations.
Fields§
§process_region: IVec4Region to process (x, y, width, height)
full_region: IVec4Full region (x, y, width, height)
resolution: UVec2Resolution of the render (width, height)
filter_resolution: UVec2Resolution of the filter (width, height)
center: Vec2Center point of the convolution
flags: u32Global operation flags
non_uniform_flags: u32Flags for non uniform settings
samples: u32Number of samples to use for convolution
pixel_aspect: f32Pixel aspect ratio
size: f32Base size for convolution
max_size: f32Maximum size for convolution
catseye_amount: f32Amount of catseye effect
catseye_gamma: f32Gamma correction for catseye
catseye_softness: f32Softness of catseye edges
astigmatism_amount: f32Amount of astigmatism
astigmatism_gamma: f32Gamma correction for astigmatism
barndoors_amount: f32Amount of barndoors effect
barndoors_gamma: f32Gamma correction for barndoors
barndoors_top: f32Top position of barndoors
barndoors_bottom: f32Bottom position of barndoors
barndoors_left: f32Left position of barndoors
barndoors_right: f32Right position of barndoors
filter_aspect_ratio_normalizer: f32Normalization factor for filter aspect ratio
image_elements: u32Total number of
ring_distance: f32Distance between rings in the filter
filter_aspect_ratio: f32Aspect ratio of the filter
pixel_aspect_normalizer: f32Normalization factor for pixel aspect
render_scale: u32Size of render
axial_aberration_amount: f32Flag indicating whether to invert foreground bokeh shape
axial_aberration_type: i32§_padding: u32Implementations§
Source§impl ConvolveSettings
impl ConvolveSettings
pub fn compute_sample_weight(&self, coc: f32) -> f32
pub fn get_sample_weights(&self) -> [f32; 2048]
pub fn get_image_resolution(&self) -> UVec2
Sourcepub fn get_real_coordinates(&self, coordinates: UVec2) -> UVec2
pub fn get_real_coordinates(&self, coordinates: UVec2) -> UVec2
Get the coordinates in screen-space based on the full region
pub fn get_axial_aberration_settings(&self) -> AxialAberration
Trait Implementations§
Source§impl Clone for ConvolveSettings
impl Clone for ConvolveSettings
Source§fn clone(&self) -> ConvolveSettings
fn clone(&self) -> ConvolveSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConvolveSettings
impl Debug for ConvolveSettings
impl Copy for ConvolveSettings
impl Pod for ConvolveSettings
Auto Trait Implementations§
impl Freeze for ConvolveSettings
impl RefUnwindSafe for ConvolveSettings
impl Send for ConvolveSettings
impl Sync for ConvolveSettings
impl Unpin for ConvolveSettings
impl UnwindSafe for ConvolveSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.