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
載入紋理之後要執行的處理常式。
- 屬性