SKMetalView Constructors
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 |
|---|---|
| SKMetalView() |
Initializes a new instance of the SKMetalView class. |
| SKMetalView(CGRect) |
Initializes the SKMetalView with the specified frame. |
| SKMetalView(IntPtr) |
Initializes a new instance of the SKMetalView class from a native handle. |
| SKMetalView(CGRect, IMTLDevice) |
Initializes the SKMetalView with the specified frame and Metal device. |
SKMetalView()
SKMetalView(CGRect)
Initializes the SKMetalView with the specified frame.
public SKMetalView(CoreGraphics.CGRect frame);
Parameters
- frame
- CGRect
The frame used by the view, expressed in iOS points.
Applies to
SKMetalView(IntPtr)
Initializes a new instance of the SKMetalView class from a native handle.
public SKMetalView(IntPtr p);
Parameters
- p
- IntPtr
The pointer (handle) to the unmanaged object.
Remarks
This constructor is used by the Xamarin.iOS runtime when creating managed representations of unmanaged objects. It is not intended to be called directly from user code.
Applies to
SKMetalView(CGRect, IMTLDevice)
Initializes the SKMetalView with the specified frame and Metal device.
public SKMetalView(CoreGraphics.CGRect frame, Metal.IMTLDevice device);
Parameters
- frame
- CGRect
The frame used by the view, expressed in iOS points.
- device
- IMTLDevice
The Metal device to use for rendering.