D1125: DXGI Format Mismatch
The pixel format passed to this API is not compatible with the pixel format of the [surface].
Placeholders
-
surface
-
The render target or bitmap specified.
Possible Causes
Operations such as ID2D1RenderTarget::CreateBitmapFromWicBitmap or ID2D1RenderTarget::CreateDxgiSurfaceRendertarget require both a surface and a specified surface format. Direct2D verifies that the specified surface type is compatible with the surface. If it is not compatible, Direct2D will output this message.
Possible Fixes
Ensure that the specified DXGI_FORMAT matches, or is compatible with, the type of the underlying surface. For Direct3D surface resources created by the application, use the same DXGI_FORMAT used to create the resource. Please see Supported Pixel Formats and Alpha Modes for additional guidance.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for