Trait objc2_metal::MTLFunction

source ·
pub unsafe trait MTLFunction: NSObjectProtocol + IsRetainable {
    // Provided methods
    fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn setLabel(&self, label: Option<&NSString>)
       where Self: Sized + Message { ... }
    fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    fn functionType(&self) -> MTLFunctionType
       where Self: Sized + Message { ... }
    fn patchType(&self) -> MTLPatchType
       where Self: Sized + Message { ... }
    fn patchControlPointCount(&self) -> NSInteger
       where Self: Sized + Message { ... }
    fn vertexAttributes(&self) -> Option<Retained<NSArray<MTLVertexAttribute>>>
       where Self: Sized + Message { ... }
    fn stageInputAttributes(&self) -> Option<Retained<NSArray<MTLAttribute>>>
       where Self: Sized + Message { ... }
    fn name(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn functionConstantsDictionary(
        &self
    ) -> Retained<NSDictionary<NSString, MTLFunctionConstant>>
       where Self: Sized + Message { ... }
    unsafe fn newArgumentEncoderWithBufferIndex(
        &self,
        buffer_index: NSUInteger
    ) -> Retained<ProtocolObject<dyn MTLArgumentEncoder>>
       where Self: Sized + Message { ... }
    fn options(&self) -> MTLFunctionOptions
       where Self: Sized + Message { ... }
}
Available on crate feature MTLLibrary only.

Provided Methods§

source

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

source

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

source

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

Available on crate feature MTLDevice only.
source

fn functionType(&self) -> MTLFunctionType
where Self: Sized + Message,

source

fn patchType(&self) -> MTLPatchType
where Self: Sized + Message,

source

fn patchControlPointCount(&self) -> NSInteger
where Self: Sized + Message,

source

fn vertexAttributes(&self) -> Option<Retained<NSArray<MTLVertexAttribute>>>
where Self: Sized + Message,

source

fn stageInputAttributes(&self) -> Option<Retained<NSArray<MTLAttribute>>>
where Self: Sized + Message,

source

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

source

fn functionConstantsDictionary( &self ) -> Retained<NSDictionary<NSString, MTLFunctionConstant>>
where Self: Sized + Message,

source

unsafe fn newArgumentEncoderWithBufferIndex( &self, buffer_index: NSUInteger ) -> Retained<ProtocolObject<dyn MTLArgumentEncoder>>
where Self: Sized + Message,

Available on crate feature MTLArgumentEncoder only.
source

fn options(&self) -> MTLFunctionOptions
where Self: Sized + Message,

Available on crate feature MTLFunctionDescriptor only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLFunction

source§

const NAME: &'static str = "MTLFunction"

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 MTLFunction
where T: ?Sized + Message + MTLFunction,

Implementations on Foreign Types§

source§

impl<T> MTLFunction for ProtocolObject<T>
where T: ?Sized + MTLFunction,

Implementors§