D3D11 render texture formats

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
User avatar
Posts: 223
Joined: Thu Apr 26, 2007 11:43 am
Location: Slovakia / Switzerland
x 5

D3D11 render texture formats

Post by bishopnator »

I tried to use PF_R32_UINT as render texture format and Ogre didn't map this value properly to D3D11's DXGI_FORMAT_R32_UINT - I see also a lot of other formats missing in D3D11Mappings::_getClosestSupportedPF and D3D11Mappings::_getPF - is it intentional or bug? Are there some problems with compatibility between different GPUs?

I am playing with pixel shaders to output primitive ID (uint) to texture directly.

OGRE Team Member
OGRE Team Member
Posts: 1129
Joined: Sun Mar 30, 2014 2:51 pm
x 411

Re: D3D11 render texture formats

Post by paroj »

this is a bug. Pixel format conversions in Ogre were messed up a lot. I am slowly working through it, but pull requests are very welcome here.

Post Reply