Jump to content


DX10 render target size limit


5 replies to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2325 posts

Posted 06 March 2009 - 01:35 PM

Is there a size limit for a render target, im trying to create a 4096x4096 render target, it seems to be creating but its failing when i set as the target.

#2 Goz

    Senior Member

  • Members
  • PipPipPipPip
  • 574 posts

Posted 06 March 2009 - 01:38 PM

does the debug spew give you any info?

What HRESULT does it return?

#3 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2325 posts

Posted 06 March 2009 - 01:43 PM

I havent got debug set up for dx10, i dont know how.
It has a void return value->"device->OMSetRenderTargets(1,&rtdef,ods);"

Does anyone just know? I dont think im running out of ram.

#4 Goz

    Senior Member

  • Members
  • PipPipPipPip
  • 574 posts

Posted 06 March 2009 - 01:55 PM

When you create the device use this as one of your creation flags for debug output.

D3D10_CREATE_DEVICE_DEBUG.

You can then QI the ID3D10Debug interface for extra debugging options from the device interface.

#5 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2325 posts

Posted 06 March 2009 - 04:10 PM

I figured it out, yeh as you probably knew your allowed render targets that size, it was the depth buffer not being big enough for it.

thankyou.

#6 Goz

    Senior Member

  • Members
  • PipPipPipPip
  • 574 posts

Posted 06 March 2009 - 04:24 PM

rouncer said:

I figured it out, yeh as you probably knew your allowed render targets that size, it was the depth buffer not being big enough for it.

thankyou.

ahh lol!

I made that mistake under DX9 myself! :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users