pub struct ImageStatisticsMean { /* private fields */ }Implementations§
Source§impl ImageStatisticsMean
impl ImageStatisticsMean
pub fn new(device: &MetalDevice) -> Option<Self>
Source§impl ImageStatisticsMean
impl ImageStatisticsMean
Sourcepub fn encode_image(
&self,
command_buffer: &CommandBuffer,
source: &Image,
destination: &Image,
)
pub fn encode_image( &self, command_buffer: &CommandBuffer, source: &Image, destination: &Image, )
Encode the filter against MPSImage inputs/outputs.
Sourcepub fn encode_texture(
&self,
command_buffer: &CommandBuffer,
source: &MetalTexture,
destination: &MetalTexture,
)
pub fn encode_texture( &self, command_buffer: &CommandBuffer, source: &MetalTexture, destination: &MetalTexture, )
Encode the filter directly against MTLTexture inputs/outputs.
Sourcepub fn set_edge_mode(&self, edge_mode: usize)
pub fn set_edge_mode(&self, edge_mode: usize)
Configure the kernel’s edge mode.
Sourcepub fn set_clip_rect(&self, region: ImageRegion)
pub fn set_clip_rect(&self, region: ImageRegion)
Restrict writes to a destination clip rectangle.
Trait Implementations§
Source§impl Drop for ImageStatisticsMean
impl Drop for ImageStatisticsMean
impl Send for ImageStatisticsMean
impl Sync for ImageStatisticsMean
Auto Trait Implementations§
impl Freeze for ImageStatisticsMean
impl RefUnwindSafe for ImageStatisticsMean
impl Unpin for ImageStatisticsMean
impl UnsafeUnpin for ImageStatisticsMean
impl UnwindSafe for ImageStatisticsMean
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
Mutably borrows from an owned value. Read more