IMTL4Compiler.CreateLibrary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateLibrary(MTL4LibraryDescriptor, MTLCreateLibraryCompletionHandler) | |
| CreateLibrary(MTL4LibraryDescriptor, NSError) |
CreateLibrary(MTL4LibraryDescriptor, MTLCreateLibraryCompletionHandler)
[Foundation.Export("newLibraryWithDescriptor:completionHandler:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTL4CompilerTask CreateLibrary(Metal.MTL4LibraryDescriptor descriptor, Metal.MTLCreateLibraryCompletionHandler completionHandler);
[<Foundation.Export("newLibraryWithDescriptor:completionHandler:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateLibrary : Metal.MTL4LibraryDescriptor * Metal.MTLCreateLibraryCompletionHandler -> Metal.IMTL4CompilerTask
override this.CreateLibrary : Metal.MTL4LibraryDescriptor * Metal.MTLCreateLibraryCompletionHandler -> Metal.IMTL4CompilerTask
Parameters
- descriptor
- MTL4LibraryDescriptor
- completionHandler
- MTLCreateLibraryCompletionHandler
Returns
- Attributes
Applies to
CreateLibrary(MTL4LibraryDescriptor, NSError)
[Foundation.Export("newLibraryWithDescriptor:error:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLLibrary? CreateLibrary(Metal.MTL4LibraryDescriptor descriptor, out Foundation.NSError? error);
[<Foundation.Export("newLibraryWithDescriptor:error:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateLibrary : Metal.MTL4LibraryDescriptor * NSError -> Metal.IMTLLibrary
override this.CreateLibrary : Metal.MTL4LibraryDescriptor * NSError -> Metal.IMTLLibrary
Parameters
- descriptor
- MTL4LibraryDescriptor
- error
- NSError
Returns
- Attributes