IMTLTexture.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.
Overloads
| Name | Description |
|---|---|
| CreateTextureView(MTLPixelFormat, MTLTextureType, NSRange, NSRange) |
Creates and returns a Metal texture that shares the same memory as the source object, but that is interpreted with the new pixel format. |
| CreateTextureView(MTLPixelFormat) | |
| CreateTextureView(MTLTextureViewDescriptor) |
CreateTextureView(MTLPixelFormat, MTLTextureType, NSRange, NSRange)
Creates and returns a Metal texture that shares the same memory as the source object, but that is interpreted with the new pixel format.
[Foundation.Export("newTextureViewWithPixelFormat:textureType:levels:slices:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLTexture? CreateTextureView(Metal.MTLPixelFormat pixelFormat, Metal.MTLTextureType textureType, Foundation.NSRange levelRange, Foundation.NSRange sliceRange);
[<Foundation.Export("newTextureViewWithPixelFormat:textureType:levels:slices:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateTextureView : Metal.MTLPixelFormat * Metal.MTLTextureType * Foundation.NSRange * Foundation.NSRange -> Metal.IMTLTexture
override this.CreateTextureView : Metal.MTLPixelFormat * Metal.MTLTextureType * Foundation.NSRange * Foundation.NSRange -> Metal.IMTLTexture
Parameters
- pixelFormat
- MTLPixelFormat
- textureType
- MTLTextureType
- levelRange
- NSRange
- sliceRange
- NSRange
Returns
- Attributes
Applies to
CreateTextureView(MTLPixelFormat)
[Foundation.Export("newTextureViewWithPixelFormat:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLTexture? CreateTextureView(Metal.MTLPixelFormat pixelFormat);
[<Foundation.Export("newTextureViewWithPixelFormat:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateTextureView : Metal.MTLPixelFormat -> Metal.IMTLTexture
override this.CreateTextureView : Metal.MTLPixelFormat -> Metal.IMTLTexture
Parameters
- pixelFormat
- MTLPixelFormat
Returns
- Attributes
Applies to
CreateTextureView(MTLTextureViewDescriptor)
[Foundation.Export("newTextureViewWithDescriptor:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLTexture? CreateTextureView(Metal.MTLTextureViewDescriptor descriptor);
[<Foundation.Export("newTextureViewWithDescriptor:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateTextureView : Metal.MTLTextureViewDescriptor -> Metal.IMTLTexture
override this.CreateTextureView : Metal.MTLTextureViewDescriptor -> Metal.IMTLTexture
Parameters
- descriptor
- MTLTextureViewDescriptor
Returns
- Attributes