pub struct ImageAdd { /* private fields */ }Implementations§
Source§impl ImageAdd
impl ImageAdd
pub fn new(device: &MetalDevice) -> Option<Self>
Sourcepub fn set_scales(&self, primary_scale: f32, secondary_scale: f32, bias: f32)
pub fn set_scales(&self, primary_scale: f32, secondary_scale: f32, bias: f32)
Set primaryScale, secondaryScale, and bias in one call.
Source§impl ImageAdd
impl ImageAdd
Sourcepub fn encode_image(
&self,
command_buffer: &CommandBuffer,
primary: &Image,
secondary: &Image,
destination: &Image,
)
pub fn encode_image( &self, command_buffer: &CommandBuffer, primary: &Image, secondary: &Image, destination: &Image, )
Encode the filter against MPSImage inputs/outputs.
Sourcepub fn encode_texture(
&self,
command_buffer: &CommandBuffer,
primary: &MetalTexture,
secondary: &MetalTexture,
destination: &MetalTexture,
)
pub fn encode_texture( &self, command_buffer: &CommandBuffer, primary: &MetalTexture, secondary: &MetalTexture, destination: &MetalTexture, )
Encode the filter directly against MTLTexture inputs/outputs.
Sourcepub fn set_primary_edge_mode(&self, edge_mode: usize)
pub fn set_primary_edge_mode(&self, edge_mode: usize)
Configure the primary input edge mode.
Sourcepub fn set_secondary_edge_mode(&self, edge_mode: usize)
pub fn set_secondary_edge_mode(&self, edge_mode: usize)
Configure the secondary input 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§
Auto Trait Implementations§
impl Freeze for ImageAdd
impl RefUnwindSafe for ImageAdd
impl Unpin for ImageAdd
impl UnsafeUnpin for ImageAdd
impl UnwindSafe for ImageAdd
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