XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

D3DX10SaveTextureToFile sRGB

Last post 03-29-2008 9:11 PM by jogshy. 2 replies.
  • 03-29-2008 5:41 PM

    D3DX10SaveTextureToFile sRGB

    I'm trying to save my sRGB back buffer(without MSAA) to a file.

    I tried to call D3DX10SaveTextureToFile to output my sRGB back buffer(DXGI_FORMAT_R8G8B8A8_UNORM_SRGB) as a BMP, TIFF, PNG file... but it always returns an E_FAIL.

    If I do it with a common DXGI_FORMAT_R8G8B8A8_UNORM backbuffer all works ok.
    Any idea why, pls?
  • 03-29-2008 6:11 PM In reply to

    Re: D3DX10SaveTextureToFile sRGB

    Answer

    Known problem. sRGB Formats could be only saved to DDS files. Unfortunately these DDS files will use the new D3D10 extension which is hardly supported from any program.

  • 03-29-2008 9:11 PM In reply to

    Re: D3DX10SaveTextureToFile sRGB

    Ok, so I have to do it manually then. thx
Page 1 of 1 (3 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG