GRBackendRenderTargetDesc Struct

Definition

Warning

This API is now obsolete.

Wrap an existing render target created by the client in the 3D API with an underlying GRRenderTarget object.

[System.Obsolete("Use GRBackendRenderTarget instead.")]
public struct GRBackendRenderTargetDesc
Inheritance
GRBackendRenderTargetDesc
Attributes

Remarks

The client is responsible for ensuring that the underlying 3D API object lives at least as long as the GRRenderTarget 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).

Properties

Config

Gets or sets the color format.

Height

Gets or sets the height in pixels.

Origin

Gets or sets the pixel origin.

Rect

Gets a rectangle with the current width and height.

RenderTargetHandle

Gets or sets the handle to the 3D API object.

SampleCount

Gets or sets the number of samples per pixel.

Size

Gets the current size of the 3D API object.

StencilBits

Gets or sets the number of bits of stencil per pixel.

Width

Gets or sets the width in pixels.

Applies to