Skip to content

Commit

Permalink
Add Metal API for GRBackendRenderTarget to all platforms (#3070)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Leibowitz <[email protected]>
  • Loading branch information
spouliot and mattleibow authored Nov 27, 2024
1 parent 32fbf8d commit 8afcbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/SkiaSharp/GRBackendRenderTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public GRBackendRenderTarget (int width, int height, int sampleCount, GRMtlTextu
{
}

#endif

public GRBackendRenderTarget (int width, int height, GRMtlTextureInfo mtlInfo)
: this (IntPtr.Zero, true)
{
Expand All @@ -49,8 +51,6 @@ public GRBackendRenderTarget (int width, int height, GRMtlTextureInfo mtlInfo)
}
}

#endif

private void CreateGl (int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
{
Handle = SkiaApi.gr_backendrendertarget_new_gl (width, height, sampleCount, stencilBits, &glInfo);
Expand Down

0 comments on commit 8afcbc4

Please sign in to comment.