Editar

Compartir a través de


GRBackendTexture Class

Definition

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

public class GRBackendTexture : SkiaSharp.SKObject
Inheritance
GRBackendTexture

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

GRBackendTexture(GRBackendTextureDesc)
Obsolete.

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

GRBackendTexture(GRGlBackendTextureDesc)
Obsolete.

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

GRBackendTexture(Int32, Int32, Boolean, GRGlTextureInfo)

Creates a new OpenGL GRBackendTexture with the specified properties and texture.

GRBackendTexture(Int32, Int32, GRVkImageInfo)

Properties

Backend

Gets the backend for this texture.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
HasMipMaps

Gets a value indicating whether this texture is mipmapped.

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 GRBackendTexture 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.

Size

Gets the current size of the 3D API object.

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 GRBackendTexture 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)
GetGlTextureInfo()

Returns the texture info that this object wraps.

GetGlTextureInfo(GRGlTextureInfo)

Returns the texture info that this object wraps.

Applies to