Trait objc2_metal::MTLRasterizationRateMap

source ·
pub unsafe trait MTLRasterizationRateMap: NSObjectProtocol + IsRetainable {
    // Provided methods
    unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    unsafe fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn screenSize(&self) -> MTLSize
       where Self: Sized + Message { ... }
    unsafe fn physicalGranularity(&self) -> MTLSize
       where Self: Sized + Message { ... }
    unsafe fn layerCount(&self) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe fn parameterBufferSizeAndAlign(&self) -> MTLSizeAndAlign
       where Self: Sized + Message { ... }
    unsafe fn copyParameterDataToBuffer_offset(
        &self,
        buffer: &ProtocolObject<dyn MTLBuffer>,
        offset: NSUInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn physicalSizeForLayer(&self, layer_index: NSUInteger) -> MTLSize
       where Self: Sized + Message { ... }
    unsafe fn mapScreenToPhysicalCoordinates_forLayer(
        &self,
        screen_coordinates: MTLCoordinate2D,
        layer_index: NSUInteger
    ) -> MTLCoordinate2D
       where Self: Sized + Message { ... }
    unsafe fn mapPhysicalToScreenCoordinates_forLayer(
        &self,
        physical_coordinates: MTLCoordinate2D,
        layer_index: NSUInteger
    ) -> MTLCoordinate2D
       where Self: Sized + Message { ... }
}
Available on crate feature MTLRasterizationRate only.

Provided Methods§

source

unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

unsafe fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

unsafe fn screenSize(&self) -> MTLSize
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn physicalGranularity(&self) -> MTLSize
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn layerCount(&self) -> NSUInteger
where Self: Sized + Message,

source

unsafe fn parameterBufferSizeAndAlign(&self) -> MTLSizeAndAlign
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

unsafe fn copyParameterDataToBuffer_offset( &self, buffer: &ProtocolObject<dyn MTLBuffer>, offset: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource only.
source

unsafe fn physicalSizeForLayer(&self, layer_index: NSUInteger) -> MTLSize
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn mapScreenToPhysicalCoordinates_forLayer( &self, screen_coordinates: MTLCoordinate2D, layer_index: NSUInteger ) -> MTLCoordinate2D
where Self: Sized + Message,

Available on crate feature MTLTypes only.
source

unsafe fn mapPhysicalToScreenCoordinates_forLayer( &self, physical_coordinates: MTLCoordinate2D, layer_index: NSUInteger ) -> MTLCoordinate2D
where Self: Sized + Message,

Available on crate feature MTLTypes only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLRasterizationRateMap

source§

const NAME: &'static str = "MTLRasterizationRateMap"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn MTLRasterizationRateMap

Implementations on Foreign Types§

source§

impl<T> MTLRasterizationRateMap for ProtocolObject<T>

Implementors§