Edit

Share via


MTLTexture_Extensions.CreateTextureView Method

Definition

Creates and returns a Metal texture that shares the same memory as the source object, but that is interpreted with the new pixel format.

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

Parameters

This
IMTLTexture

The instance on which this method operates.

pixelFormat
MTLPixelFormat
textureType
MTLTextureType
levelRange
NSRange
sliceRange
NSRange

Returns

Applies to