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