GetTemporary
Sandbox.Engine
static RenderTarget GetTemporary( int sizeFactor, ImageFormat colorFormat, ImageFormat depthFormat, MultisampleAmount msaa, int numMips, )

Summary

Get a temporary render target. You should dispose the returned handle when you're done to return the textures to the pool.

Parameters

int sizeFactor,

Divide the screen size by this factor. 2 would be half screen sized. 1 for full screen sized.

ImageFormat colorFormat,

The format for the color buffer. If null we'll choose the most appropriate for where you are in the pipeline.

ImageFormat depthFormat,

The format for the depth buffer

The number of msaa samples you'd like. Msaa render textures are a pain in the ass so you're probably gonna regret trying to use this

int numMips,

Number of mips you want in this texture. You probably don't want this unless you want to generate mips in a second pass

Return Value

A RenderTarget that is ready to render to