MTKTextureLoader.FromTexture 方法

定义

重载

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

从指定的 texture创建新的金属纹理。

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

从指定的 texture创建新的金属纹理。

FromTexture(MDLTexture, NSDictionary, NSError)

从指定的 texture创建新的金属纹理。

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

从指定的 texture创建新的金属纹理。

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

从指定的 texture创建新的金属纹理。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public void FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, MetalKit.MTKTextureLoaderCallback completionHandler);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions * MetalKit.MTKTextureLoaderCallback -> unit

参数

texture
MDLTexture

要加载的纹理。

options
MTKTextureLoaderOptions

用于加载纹理数据的选项。

completionHandler
MTKTextureLoaderCallback

加载纹理后要运行的处理程序。

属性

适用于

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

从指定的 texture创建新的金属纹理。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, out Foundation.NSError error);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions *  -> Metal.IMTLTexture

参数

texture
MDLTexture

要加载的纹理。

options
MTKTextureLoaderOptions

用于加载纹理数据的选项。

error
NSError

包含错误(如果发生)。

返回

属性

适用于

FromTexture(MDLTexture, NSDictionary, NSError)

从指定的 texture创建新的金属纹理。

[Foundation.Export("newTextureWithMDLTexture:options:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, out Foundation.NSError error);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture

参数

texture
MDLTexture

要加载的纹理。

options
NSDictionary

用于加载纹理数据的选项

.

此参数可以为 null

error
NSError

包含错误(如果发生)。

返回

属性

适用于

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

从指定的 texture创建新的金属纹理。

[Foundation.Export("newTextureWithMDLTexture:options:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual void FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, MetalKit.MTKTextureLoaderCallback completionHandler);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit

参数

texture
MDLTexture

要加载的纹理。

options
NSDictionary

用于加载纹理数据的选项

.

此参数可以为 null

completionHandler
MTKTextureLoaderCallback

加载纹理后要运行的处理程序。

属性

适用于