Edit

Share via


IMTLDrawable Interface

Definition

Interface representing the required methods (if any) of the protocol MTLDrawable.

[Foundation.Protocol(Name="MTLDrawable", WrapperType=typeof(Metal.MTLDrawableWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public interface IMTLDrawable : IDisposable, ObjCRuntime.INativeObject
type IMTLDrawable = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by MTLDrawable.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the MTLDrawable protocol.

Optional methods (if any) are provided by the MTLDrawable_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Present()
Present(Double)

Extension Methods

AddPresentedHandler(IMTLDrawable, Action<IMTLDrawable>)

Causes the provided block to be run after the drawable is displayed.

GetDrawableID(IMTLDrawable)

Returns the positive integer that identifies the drawable.

GetPresentedTime(IMTLDrawable)

Returns the time, in seconds, when the host displayed this drawable.

PresentAfter(IMTLDrawable, Double)

Causes the drawable to be presented at least duration seconds after the previous drawable has been presented.

Applies to