pub struct ImageThresholdBinary { /* private fields */ }Implementations§
Source§impl ImageThresholdBinary
impl ImageThresholdBinary
pub fn new( device: &MetalDevice, threshold_value: f32, maximum_value: f32, ) -> Option<Self>
pub fn with_transform( device: &MetalDevice, threshold_value: f32, maximum_value: f32, transform: [f32; 3], ) -> Option<Self>
Source§impl ImageThresholdBinary
impl ImageThresholdBinary
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 ImageThresholdBinary
impl Drop for ImageThresholdBinary
impl Send for ImageThresholdBinary
impl Sync for ImageThresholdBinary
Auto Trait Implementations§
impl Freeze for ImageThresholdBinary
impl RefUnwindSafe for ImageThresholdBinary
impl Unpin for ImageThresholdBinary
impl UnsafeUnpin for ImageThresholdBinary
impl UnwindSafe for ImageThresholdBinary
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