MTKTextureLoader.FromTexture 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback) |
从指定的 |
FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError) |
从指定的 |
FromTexture(MDLTexture, NSDictionary, NSError) |
从指定的 |
FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback) |
从指定的 |
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
要加载的纹理。
- 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
要加载的纹理。
- completionHandler
- MTKTextureLoaderCallback
加载纹理后要运行的处理程序。
- 属性