Skip to content

lib.img.generate.RenderTarget

Thomas Mann edited this page May 19, 2023 · 2 revisions

RenderTarget

in lib.img.generate


The primary method of rending 3d data into a 2d image textue.

You will need this for all post processing image effects and many other things.

Some notes

If resolution is...

  • [0,0] the current requests resolution of the output window is being used
  • for image fx operators, negative resolutions will use the incomming resolution.

All other settings using custom resolutions. The max. resolution is depends on your graphics hardware and is normally 16k.

TextureReference can be used for feedback effects.

You will need a depth buffer for all Z-Buffer sorting. Combining depth buffer with MultiSampling requires internal down sampling: This basically means doubling the GPU memory consumption.


Outputs

Name Type
ColorBuffer SharpDX.Direct3D11.Texture2D
DepthBuffer SharpDX.Direct3D11.Texture2D
VelocityBuffer SharpDX.Direct3D11.Texture2D

Parameters

Name Type Relevancy
Command T3.Core.DataTypes.Command Required
Resolution SharpDX.Size2
ClearColor System.Numerics.Vector4
TextureFormat SharpDX.DXGI.Format
WithDepthBuffer System.Boolean
Clear System.Boolean
GenerateMips System.Boolean
TextureReference T3.Core.DataTypes.RenderTargetReference
Multisampling System.Int32
EnableUpdate System.Boolean

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

Clone this wiki locally