D1132: DXGI Format Not HWND Or DC Compatible

The given DXGI format is not valid for this render target creation method.

Error Level Warning


Possible Causes

Creation of HWND or DC rendertargets using ID2D1Factory::CreateHwndRenderTarget or ID2D1Factory::CreateDCRenderTarget introduces additional restrictions on the surface format of the target. In particular, these targets should be of type DXGI_FORMAT_R8G8B8A8_UNORM or DXGI_FORMAT_B8G8R8A8_UNORM.

Possible Fixes

To address this problem, verify that the format specified for an application’s HWND or DC rendertarget is one of the formats mentioned above. If the application does not necessarily require these types of targets, consider rendering to a texture instead, its surface format options for compatibility as a target may be less restrictive.