MTLTexture_Extensions.CreateTextureView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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