IMTLDevice.CreateDefaultLibrary 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 |
|---|---|
| CreateDefaultLibrary() | |
| CreateDefaultLibrary(NSBundle, NSError) |
Creates and returns a new library from the functions in the specified bundle. |
CreateDefaultLibrary()
[Foundation.Export("newDefaultLibrary")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLLibrary CreateDefaultLibrary();
[<Foundation.Export("newDefaultLibrary")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateDefaultLibrary : unit -> Metal.IMTLLibrary
override this.CreateDefaultLibrary : unit -> Metal.IMTLLibrary
Returns
- Attributes
Applies to
CreateDefaultLibrary(NSBundle, NSError)
Creates and returns a new library from the functions in the specified bundle.
[Foundation.Export("newDefaultLibraryWithBundle:error:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLLibrary? CreateDefaultLibrary(Foundation.NSBundle bundle, out Foundation.NSError error);
[<Foundation.Export("newDefaultLibraryWithBundle:error:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateDefaultLibrary : Foundation.NSBundle * NSError -> Metal.IMTLLibrary
override this.CreateDefaultLibrary : Foundation.NSBundle * NSError -> Metal.IMTLLibrary
Parameters
- bundle
- NSBundle
- error
- NSError
Returns
- Attributes