Wiki > TV3D65 Index > TVScene
CreateMultiRenderSurface
DESCRIPTION
Generates multiple render surfaces( targets ) for use in advanced shader outputting. This allows for rendering on up to 4 render surfaces in one pass.
See: MSDN
DECLARATION
| VB.NET | CreateMultiRenderSurface(iNumRenderTargets As Integer , iWidth As Integer , iHeight As Integer , bUseDepth As Boolean , bUseMainBufferSize As Boolean , fMainBufferScale As Single , iFormat1 As CONST_TV_RENDERSURFACEFORMAT , iFormat2 As CONST_TV_RENDERSURFACEFORMAT , iFormat3 As CONST_TV_RENDERSURFACEFORMAT , iFormat4 As CONST_TV_RENDERSURFACEFORMAT , sName As String) As TVRenderSurface |
| C++ | cTVRenderSurface *CreateMultiRenderSurface(int iNumRenderTargets , int iWidth , int iHeight , bool bUseDepth , bool bUseMainBufferSize , float fMainBufferScale , cCONST_TV_RENDERSURFACEFORMAT iFormat1 , cCONST_TV_RENDERSURFACEFORMAT iFormat2 , cCONST_TV_RENDERSURFACEFORMAT iFormat3 , cCONST_TV_RENDERSURFACEFORMAT iFormat4 , char* sName ) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| iNumRenderTargets | No | Number of targets to create( max 4 ). |
| iWidth | No | Width of the targets. |
| iHeight | No | Height of the targets. |
| bUseDepth | No | Keep depth. |
| bUseMainBufferSize | No | Use main viewport dimensions. |
| fMainBufferScale | No | Scale dimensions. |
| iFormat1 | No | Surface format of target 1. |
| iFormat2 | No | Surface format of target 2. |
| iFormat3 | No | Surface format of target 3. |
| iFormat4 | No | Surface format of target 4. |
| sName | No | Name of this MRT. |
RETURN VALUE
EXAMPLES
TIPS
- The targets can be different formats but they must all share the same bit depth.