pub struct SpatialScalerDescriptor {
pub color_texture_format: usize,
pub output_texture_format: usize,
pub input_width: usize,
pub input_height: usize,
pub output_width: usize,
pub output_height: usize,
pub color_processing_mode: isize,
}Expand description
Re-exports the Metal framework surface for this item.
Safe Rust description of MTLFXSpatialScalerDescriptor.
Fields§
§color_texture_format: usizeMirrors the Metal framework property for color_texture_format.
output_texture_format: usizeMirrors the Metal framework property for output_texture_format.
input_width: usizeMirrors the Metal framework property for input_width.
input_height: usizeMirrors the Metal framework property for input_height.
output_width: usizeMirrors the Metal framework property for output_width.
output_height: usizeMirrors the Metal framework property for output_height.
color_processing_mode: isizeMirrors the Metal framework property for color_processing_mode.
Implementations§
Source§impl SpatialScalerDescriptor
impl SpatialScalerDescriptor
Sourcepub const fn new(
color_texture_format: usize,
output_texture_format: usize,
input_width: usize,
input_height: usize,
output_width: usize,
output_height: usize,
) -> Self
pub const fn new( color_texture_format: usize, output_texture_format: usize, input_width: usize, input_height: usize, output_width: usize, output_height: usize, ) -> Self
Create a MetalFX spatial-scaler descriptor.
Sourcepub fn supports_device(device: &MetalDevice) -> bool
pub fn supports_device(device: &MetalDevice) -> bool
Query whether the given device supports MetalFX spatial scaling.
Trait Implementations§
Source§impl Clone for SpatialScalerDescriptor
impl Clone for SpatialScalerDescriptor
Source§fn clone(&self) -> SpatialScalerDescriptor
fn clone(&self) -> SpatialScalerDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpatialScalerDescriptor
Auto Trait Implementations§
impl Freeze for SpatialScalerDescriptor
impl RefUnwindSafe for SpatialScalerDescriptor
impl Send for SpatialScalerDescriptor
impl Sync for SpatialScalerDescriptor
impl Unpin for SpatialScalerDescriptor
impl UnsafeUnpin for SpatialScalerDescriptor
impl UnwindSafe for SpatialScalerDescriptor
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