Share via


IMTLTexture.CreateTextureView Method

Definition

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

Returns

Attributes

Applies to