MDLTexture.CreateTexture Method

Definition

Overloads

Name Description
CreateTexture(String)

Creates a new texture from the specified texture in the default application bundle.

CreateTexture(String, NSBundle)

Creates a new texture from the specified texture in the specified application bundle.

CreateTexture(String, IMDLAssetResolver)

CreateTexture(String)

Creates a new texture from the specified texture in the default application bundle.

[Foundation.Export("textureNamed:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static ModelIO.MDLTexture? CreateTexture(string name);
[<Foundation.Export("textureNamed:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTexture : string -> ModelIO.MDLTexture

Parameters

name
String

Returns

Attributes

Applies to

CreateTexture(String, NSBundle)

Creates a new texture from the specified texture in the specified application bundle.

[Foundation.Export("textureNamed:bundle:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static ModelIO.MDLTexture? CreateTexture(string name, Foundation.NSBundle? bundleOrNil);
[<Foundation.Export("textureNamed:bundle:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTexture : string * Foundation.NSBundle -> ModelIO.MDLTexture

Parameters

name
String
bundleOrNil
NSBundle

Returns

Attributes

Applies to

CreateTexture(String, IMDLAssetResolver)

[Foundation.Export("textureNamed:assetResolver:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static ModelIO.MDLTexture? CreateTexture(string name, ModelIO.IMDLAssetResolver resolver);
[<Foundation.Export("textureNamed:assetResolver:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTexture : string * ModelIO.IMDLAssetResolver -> ModelIO.MDLTexture

Parameters

name
String

Returns

Attributes

Applies to