SkiaOptions Class
Definition
Options for Skia rendering subsystem.
public class SkiaOptions
Constructors
| Name | Description |
|---|---|
| SkiaOptions | No summary available. |
SkiaOptions Constructor
public SkiaOptions()
Properties
| Name | Description |
|---|---|
| MaxGpuResourceSizeBytes | The maximum number of bytes for video memory to store textures and resources. |
| UseOpacitySaveLayer | Use Skia's SaveLayer API to handling opacity. |
MaxGpuResourceSizeBytes Property
The maximum number of bytes for video memory to store textures and resources.
public Nullable<long> MaxGpuResourceSizeBytes { get; set; }
Remarks
This is set by default to the recommended value for Avalonia. Setting this to null will give you the default Skia value.
UseOpacitySaveLayer Property
Use Skia's SaveLayer API to handling opacity.
public bool UseOpacitySaveLayer { get; set; }
Remarks
Enabling this might have performance implications.