MTKTextureLoader.FromTexture Метод

Определение

Перегрузки

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Создает новую текстуру Metal из указанного textureобъекта .

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

Создает новую текстуру Metal из указанного textureобъекта .

FromTexture(MDLTexture, NSDictionary, NSError)

Создает новую текстуру Metal из указанного textureобъекта .

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

Создает новую текстуру Metal из указанного textureобъекта .

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Создает новую текстуру Metal из указанного 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)

Создает новую текстуру Metal из указанного 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)

Создает новую текстуру Metal из указанного 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)

Создает новую текстуру Metal из указанного 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

Обработчик, запускаемый после загрузки текстуры.

Атрибуты

Применяется к