MTLTexture.newTextureViewWithPixelFormat

Creates a new view of the texture, reinterpreting a subset of its data using a different type, pixel format, and swizzle pattern.

  1. MTLTexture newTextureViewWithPixelFormat(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange)
  2. MTLTexture newTextureViewWithPixelFormat(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange, MTLTextureSwizzleChannels swizzle)
    interface MTLTexture
    @selector("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:")
    newTextureViewWithPixelFormat

Meta