Edit

Share via


GRGlBackendTextureDesc Struct

Definition

Caution

Use GRBackendTexture instead.

Wrap an existing OpenGL texture created by the client in the 3D API with an underlying GRTexture object.

[System.Obsolete("Use GRBackendTexture instead.")]
public struct GRGlBackendTextureDesc : IEquatable<SkiaSharp.GRGlBackendTextureDesc>
Inheritance
GRGlBackendTextureDesc
Attributes
Implements

Remarks

The client is responsible for ensuring that the texture lives at least as long as the GRTexture object wrapping it.

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

Textures that are also render targets are supported as well. Any ancillary 3D API (stencil buffer, FBO id, etc) objects necessary will be managed.

Properties

Name Description
Config

Gets or sets the color format.

Flags

Gets or sets additional options about the texture.

Height

Gets or sets the height in pixels.

Origin

Gets or sets the pixel origin.

Rect

Gets the texture bounds as a rectangle.

SampleCount

Gets or sets the number of samples per pixel.

Size

Gets the texture dimensions as a size.

TextureHandle

Gets or sets the handle to the OpenGL texture.

Width

Gets or sets the width in pixels.

Methods

Name Description
Equals(GRGlBackendTextureDesc)

Determines whether the specified GRGlBackendTextureDesc is equal to the current instance.

Equals(Object)

Determines whether the specified object is equal to the current instance.

GetHashCode()

Returns a hash code for this instance.

Operators

Name Description
Equality(GRGlBackendTextureDesc, GRGlBackendTextureDesc)

Determines whether two specified GRGlBackendTextureDesc instances are equal.

Inequality(GRGlBackendTextureDesc, GRGlBackendTextureDesc)

Determines whether two specified GRGlBackendTextureDesc instances are not equal.

Applies to