Notice: This plugin has been discontinued and is no longer receiving updates. Please direct all comments and questions to
the new jGfx thread.
Hi everyone, I decided to see if I could get multiple render targets working in DBPro and it seems I have succeeded.
![](/images/smilies/rambo.gif)
This plugin allows cameras to render to (up to) 4 target images simultaneously in a single sync. Rendering to MRTs requires usage of pixel shaders which return a structure of colors rather than a single float4 color.
I've included a simple example as well as a project using DBPro's native functionality for performance comparison.
Update 7/21/2017: Added 2 new commands for detecting gpu capabilities.
Update 7/28/2017: Fixed a memory leak, Added new command: MRTPostPixelFormatSupport(D3DImageFormat)
Command List (5 Total):
SyncMRT CamID, TargetImgB, TargetImgC, TargetImgD - Syncs the specified camera while rendering to up to 3 additional target images. The first target is specified using Set Camera To Image.
Count = MaxSimultaneousRTs() - Returns the maximum number of simultaneous render targets supported by the graphics hardware.
Bool = MRTIndependentBitDepths() -Returns True if the graphics hardware supports independent bit depths while rendering to multiple targets.
Bool = MRTPostPixelShaderBlending() -Returns True if the graphics hardware supports post-pixel shader operations while rendering to multiple targets.
Bool = MRTPostPixelFormatSupport(D3DImageFormat) -Returns True if the graphics hardware supports post-pixel shader operations when using MRTs in conjunction with the specified image format.