Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm a little confused on the jargon: does Multiple Render Targets (MRT) refer to outputting from a pixel shader to multiple elements in a struct? That is, when one says "MRT is to write to multiple textures", are multiple elements interleaved in a single output texture, or do you specify multiple discrete output textures?

By the way, from what I understand, at least for DX9, all the elements of this struct need to be of the same size. Does this restriction still apply to DX11?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Multiple discrete output textures. You'd set up several individual render targets, each in exactly the same way as you set up one render target, then specify a list of them rather than a single one when you bind them to be drawn to.

In DX11, the render targets can be different formats and color depths. I'm not aware of any restrictions on this. You can e.g. use floating point render targets together with 8-bit integer ones. However, all the render targets must have the same pixel dimensions, e.g. 1280x720.

share|improve this answer
    
Thanks, just what I wanted to know. –  Rei Miyasaka Jun 7 '12 at 5:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.