SKGraphiteMtlBackendContext Class
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.
Supplies the Metal device and command queue used to create a Metal-backed SKGraphiteContext.
public class SKGraphiteMtlBackendContext : IDisposable
- Inheritance
-
SKGraphiteMtlBackendContext
- Implements
Remarks
Populate the MtlDevice and MtlQueue handles, then pass this object to CreateMetal(SKGraphiteMtlBackendContext). You can dispose it as soon as the context has been created.
On Apple platforms you can also assign the strongly typed Device and Queue properties instead of raw handles.
Constructors
| Name | Description |
|---|---|
| SKGraphiteMtlBackendContext() |
Initializes a new instance of the SKGraphiteMtlBackendContext class. |
Properties
| Name | Description |
|---|---|
| MtlDevice |
Gets or sets the handle to the Metal device. |
| MtlQueue |
Gets or sets the handle to the Metal command queue. |
Methods
| Name | Description |
|---|---|
| Dispose() |
Releases the resources used by the current instance of the SKGraphiteMtlBackendContext class. |
| Dispose(Boolean) |
Releases the unmanaged resources used by the SKGraphiteMtlBackendContext and optionally releases the managed resources. |