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§
fn label(&self) -> Option<Retained<NSString>>
fn setLabel(&self, label: Option<&NSString>)
fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
Available on crate feature
MTLDevice only.fn functionType(&self) -> MTLFunctionType
fn patchType(&self) -> MTLPatchType
fn patchControlPointCount(&self) -> NSInteger
fn vertexAttributes(&self) -> Option<Retained<NSArray<MTLVertexAttribute>>>
fn stageInputAttributes(&self) -> Option<Retained<NSArray<MTLAttribute>>>
fn name(&self) -> Retained<NSString>
fn functionConstantsDictionary( &self ) -> Retained<NSDictionary<NSString, MTLFunctionConstant>>
unsafe fn newArgumentEncoderWithBufferIndex( &self, buffer_index: NSUInteger ) -> Retained<ProtocolObject<dyn MTLArgumentEncoder>>
Available on crate feature
MTLArgumentEncoder only.fn options(&self) -> MTLFunctionOptions
Available on crate feature
MTLFunctionDescriptor only.