class RenderTarget

robot_2Generated
code_blocksInput

Description

The RenderTarget class in the Sandbox namespace is designed to encapsulate a pair of textures used for rendering purposes: a color texture and a depth texture. This class provides methods to create temporary render targets and manage their lifecycle efficiently.

Members

Static Methods

Member NameSummary
GetTemporaryCreates a temporary render target with specified width, height, color format, depth format, MSAA level, and number of mipmaps.
GetTemporaryCreates a temporary render target with a size factor, color format, depth format, MSAA level, and number of mipmaps.
FromCreates a render target from existing color and depth textures.

Instance Methods

Member NameSummary
DisposeReleases the render target, returning it to the pool for reuse.

Properties

Member NameSummary
WidthGets the width of the render target.
HeightGets the height of the render target.
ColorTargetGets the color texture of the render target.
DepthTargetGets the depth texture of the render target.