I am currently tying to create swap chain with DXGI format DXGI_FORMAT_R10G10B10A2_UNORM, but my program is crashed on creating DXGI surface for D2D using that format without any description:
swapChain->GetBuffer(0, IID_PPV_ARGS(&dxgiBackbuffer)); D2D1_RENDER_TARGET_PROPERTIES props = D2D1::RenderTargetProperties( D2D1_RENDER_TARGET_TYPE_HARDWARE, D2D1::PixelFormat(DXGI_FORMAT_UNKNOWN, D2D1_ALPHA_MODE_PREMULTIPLIED)); d2dfactory->CreateDxgiSurfaceRenderTarget(dxgiBackbuffer, props, &d2dRenderTarget);
Whne I use DXGI_FORMAT_R8G8B8A8_UNORM - D2D render target creates without any errors.
Could someone answer why mentioned above format is not supported or I just do something wrong and which formats supported by this function?
Edited by BlackJoker, 04 October 2013 - 08:35 AM.