GRBackendRenderTarget Class

Definition

Wrap an existing render target created by the client in the 3D API.

public class GRBackendRenderTarget : SkiaSharp.SKObject
Inheritance
GRBackendRenderTarget

Remarks

The client is responsible for ensuring that the underlying 3D API object lives at least as long as the GRBackendRenderTarget object wrapping it.

We require the client to explicitly provide information about the target, such as width, height, and pixel configuration, rather than querying the 3D API for these values. We expect these properties to be immutable even if the 3D API doesn't require this (eg: OpenGL).

Constructors

GRBackendRenderTarget(GRBackend, GRBackendRenderTargetDesc)
Obsolete.

Creates a new GRBackendRenderTarget with the properties from the specified description.

GRBackendRenderTarget(Int32, Int32, Int32, GRVkImageInfo)
GRBackendRenderTarget(Int32, Int32, Int32, Int32, GRGlFramebufferInfo)

Creates a new OpenGL GRBackendRenderTarget with the specified properties and framebuffer.

Properties

Backend

Gets the backend for this render target.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
Height

Gets the height in pixels.

IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
IsValid

Gets a value indicating whether or not the GRBackendRenderTarget was initialized.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Rect

Gets a rectangle with the current width and height.

SampleCount

Gets the number of samples per pixel.

Size

Gets the current size of the 3D API object.

StencilBits

Gets the number of bits of stencil per-pixel.

Width

Gets the width in pixels.

Methods

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the GRBackendRenderTarget and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

DisposeUnownedManaged() (Inherited from SKObject)
GetGlFramebufferInfo()

Returns the framebuffer info that this object wraps.

GetGlFramebufferInfo(GRGlFramebufferInfo)

Returns the framebuffer info that this object wraps.

Applies to