Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.29 KB

d1125.md

File metadata and controls

42 lines (29 loc) · 1.29 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1125 DXGI Format Mismatch
b94f2358-3f45-4ff3-adf8-954b785d5722
D2D1\_ALPHA\_MODE\_UNKNOWN is not allowed as a parameter to this API.
D1125 DXGI Format Mismatch Direct2D
apiref
D1125 DXGI Format Mismatch
NA
reference
05/31/2018

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.