----------------------------------------
-- Microsoft DirectX Ada binding lib --
-- File : D2Derr.ads --
-- Translator:Dongfeng.Gu,2018/10/31 --
-- Mail: 515639@qq.com --
-- Progress:100% --
----------------------------------------
with win32; use win32;
with win32.objbase; use win32.objbase;
with win32.winerror; use win32.winerror;
package D2Derr is
FACILITY_D2D : constant := 16#899#;
function MAKE_D2DHR(sev, code:WORD) return objbase.HRESULT is (win32.winerror.MAKE_HRESULT(sev,FACILITY_D2D,code));
function MAKE_D2DHR_ERR(code:WORD) return objbase.HRESULT is (MAKE_D2DHR(1,code));
D2DERR_UNSUPPORTED_PIXEL_FORMAT : constant := 16#88982f80#;
D2DERR_INSUFFICIENT_BUFFER : constant objbase.HRESULT:= HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
D2DERR_WRONG_STATE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#001#);
D2DERR_NOT_INITIALIZED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#002#);
D2DERR_UNSUPPORTED_OPERATION : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#003#);
D2DERR_SCANNER_FAILED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#004#);
D2DERR_SCREEN_ACCESS_DENIED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#005#);
D2DERR_DISPLAY_STATE_INVALID : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#006#);
D2DERR_ZERO_VECTOR : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#007#);
D2DERR_INTERNAL_ERROR : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#008#);
D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#009#);
D2DERR_INVALID_CALL : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00A#);
D2DERR_NO_HARDWARE_DEVICE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00B#);
D2DERR_RECREATE_TARGET : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00C#);
D2DERR_TOO_MANY_SHADER_ELEMENTS : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00D#);
D2DERR_SHADER_COMPILE_FAILED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00E#);
D2DERR_MAX_TEXTURE_SIZE_EXCEEDED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#00F#);
D2DERR_UNSUPPORTED_VERSION : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#010#);
D2DERR_BAD_NUMBER : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#0011#);
D2DERR_WRONG_FACTORY : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#012#);
D2DERR_LAYER_ALREADY_IN_USE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#013#);
D2DERR_POP_CALL_DID_NOT_MATCH_PUSH : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#014#);
D2DERR_WRONG_RESOURCE_DOMAIN : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#015#);
D2DERR_PUSH_POP_UNBALANCED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#016#);
D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#017#);
D2DERR_INCOMPATIBLE_BRUSH_TYPES : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#018#);
D2DERR_WIN32_ERROR : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#019#);
D2DERR_TARGET_NOT_GDI_COMPATIBLE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#01A#);
D2DERR_TEXT_EFFECT_IS_WRONG_TYPE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#01B#);
D2DERR_TEXT_RENDERER_NOT_RELEASED : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#01C#);
D2DERR_EXCEEDS_MAX_BITMAP_SIZE : constant objbase.HRESULT:= MAKE_D2DHR_ERR(16#01D#);
end D2Derr;