Overloads
static RenderTarget GetTemporary (int width, int height, ImageFormat colorFormat, ImageFormat depthFormat, MultisampleAmount msaa, int numMips, string targetName)

Parameters

NameTypeDescription
width int Width of the render target you want.
height int Height of the render target you want.
colorFormat = -2 ImageFormat The format for the color buffer. If set to default we'll use whatever the current pipeline is using.
depthFormat = -2 ImageFormat The format for the depth buffer.
msaa = 6 MultisampleAmount 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.
numMips = 1 int Number of mips you want in this texture. You probably don't want this unless you want to generate mips in a second pass.
targetName = string The optional name of the render target

Returns

TypeDescription
RenderTarget A RenderTarget that is ready to render to.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.