Skiasharp: [FEATURE] Metal APIs

Created on 9 Jul 2020  路  2Comments  路  Source: mono/SkiaSharp

Is your feature request related to a problem? Please describe.
We need to add the metal APIs available on Apple hardware.

Most helpful comment

Looking at the APIs, it appears there are 2 ways to use Metal, from a CAMetalLayer:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L304

And a MTKView:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L331

The CAMetalLayer part was added in m80, and MTKView (sadly) in m81. Just one away.

I will bind the layer one and see how that goes. I want to get m84 /m85 finished soon (#1321) and then we can add the view one.

All 2 comments

Looking at the APIs, it appears there are 2 ways to use Metal, from a CAMetalLayer:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L304

And a MTKView:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L331

The CAMetalLayer part was added in m80, and MTKView (sadly) in m81. Just one away.

I will bind the layer one and see how that goes. I want to get m84 /m85 finished soon (#1321) and then we can add the view one.

Will this enable screen drawing using the Display P3 color space? The current OpenGL view only seems to support sRGB.

Was this page helpful?
0 / 5 - 0 ratings