MTLTexture_Extensions.CreateTextureView 方法

定义

创建并返回一个金属纹理,该纹理与源对象共享相同的内存,但使用新的像素格式进行解释。

public static Metal.IMTLTexture CreateTextureView (this Metal.IMTLTexture This, Metal.MTLPixelFormat pixelFormat, Metal.MTLTextureType textureType, Foundation.NSRange levelRange, Foundation.NSRange sliceRange);
static member CreateTextureView : Metal.IMTLTexture * Metal.MTLPixelFormat * Metal.MTLTextureType * Foundation.NSRange * Foundation.NSRange -> Metal.IMTLTexture

参数

This
IMTLTexture

此方法在其上运行的实例。

pixelFormat
MTLPixelFormat
textureType
MTLTextureType
levelRange
NSRange
sliceRange
NSRange

返回

适用于