' ########################################################################################
' Microsoft Windows
' File: d3d10sdklayers.inc
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_d3d10sdklayers_PBI)
#DEFINE PBX_d3d10sdklayers_PBI
%EQUATE `D3D10SDKLAYERS_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
#INCLUDE ONCE "Legacy/COM/OCIdl.inc"
#INCLUDE ONCE "Legacy/Graphics/DXGI.inc"
%EQUATE `D3D10_SDK_LAYERS_VERSION = 11
%EQUATE `D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP = &H1
%EQUATE `D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP = &H2
%EQUATE `D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP = &H4
$IID_ID3D10Debug = GUID$("{9B7E4E01-342C-4106-A19F-4F2704F689F0}")
$IID_ID3D10SwitchToRef = GUID$("{9B7E4E02-342C-4106-A19F-4F2704F689F0}")
$IID_ID3D10InfoQueue = GUID$("{1B940B17-2642-4D1F-AB1F-B99BAD0C395F}")
' ########################################################################################
' ID3D10Debug interface
' IID = 9B7E4E01-342C-4106-A19F-4F2704F689F0
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%ID3D10Debug_INTERFACE_DEFINED)
 %ID3D10Debug_INTERFACE_DEFINED = 1
INTERFACE ID3D10Debug $IID_ID3D10Debug
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetFeatureMask ( ' VTable offset = 12
 BYVAL Mask AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetFeatureMask ( ' VTable offset = 16
 ) AS DWORD ' UINT
 ' =====================================================================================
 METHOD SetPresentPerRenderOpDelay ( ' VTable offset = 20
 BYVAL Milliseconds AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetPresentPerRenderOpDelay ( ' VTable offset = 24
 ) AS DWORD ' UINT
 ' =====================================================================================
 METHOD SetSwapChain ( ' VTable offset = 28
 BYVAL pSwapChain AS IDXGISwapChain
 ) AS LONG
 ' =====================================================================================
 METHOD GetSwapChain ( ' VTable offset = 32
 BYREF ppSwapChain AS IDXGISwapChain
 ) AS LONG
 ' =====================================================================================
 METHOD Validate ( ' VTable offset = 36
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __ID3D10Debug_INTERFACE_DEFINED__ */
' ########################################################################################
' ID3D10SwitchToRef interface
' IID = 9B7E4E02-342C-4106-A19F-4F2704F689F0
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%ID3D10SwitchToRef_INTERFACE_DEFINED)
 %ID3D10SwitchToRef_INTERFACE_DEFINED = 1
INTERFACE ID3D10SwitchToRef $IID_ID3D10SwitchToRef
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetUseRef ( ' VTable offset = 12
 BYVAL UserRef AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetUseRef ( ' VTable offset = 16
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __ID3D10SwitchToRef_INTERFACE_DEFINED__ */
' enum D3D10_MESSAGE_CATEGORY
%EQUATE `D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0
%EQUATE `D3D10_MESSAGE_CATEGORY_MISCELLANEOUS = %D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_INITIALIZATION = %D3D10_MESSAGE_CATEGORY_MISCELLANEOUS + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_CLEANUP = %D3D10_MESSAGE_CATEGORY_INITIALIZATION + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_COMPILATION = %D3D10_MESSAGE_CATEGORY_CLEANUP + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_STATE_CREATION = %D3D10_MESSAGE_CATEGORY_COMPILATION + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_STATE_SETTING = %D3D10_MESSAGE_CATEGORY_STATE_CREATION + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_STATE_GETTING = %D3D10_MESSAGE_CATEGORY_STATE_SETTING + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = %D3D10_MESSAGE_CATEGORY_STATE_GETTING + 1
%EQUATE `D3D10_MESSAGE_CATEGORY_EXECUTION = %D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1
' enum D3D10_MESSAGE_SEVERITY
%EQUATE `D3D10_MESSAGE_SEVERITY_CORRUPTION = 0
%EQUATE `D3D10_MESSAGE_SEVERITY_ERROR = %D3D10_MESSAGE_SEVERITY_CORRUPTION + 1
%EQUATE `D3D10_MESSAGE_SEVERITY_WARNING = %D3D10_MESSAGE_SEVERITY_ERROR + 1
%EQUATE `D3D10_MESSAGE_SEVERITY_INFO = %D3D10_MESSAGE_SEVERITY_WARNING + 1
' enum D3D10_MESSAGE_ID
%EQUATE `D3D10_MESSAGE_ID_UNKNOWN = 0
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD = %D3D10_MESSAGE_ID_UNKNOWN + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD = %D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD = %D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD = %D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD = %D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD = %D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD = %D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD = %D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD = %D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD = %D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_STRING_FROM_APPLICATION = %D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_THIS = %D3D10_MESSAGE_ID_STRING_FROM_APPLICATION + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 = %D3D10_MESSAGE_ID_CORRUPTED_THIS + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 + 1
%EQUATE `D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING = %D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 + 1
%EQUATE `D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = %D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING + 1
%EQUATE `D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT = %D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = %D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + 1
%EQUATE `D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = %D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + 1
%EQUATE `D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN = %D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + 1
%EQUATE `D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS = %D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + 1
%EQUATE `D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = %D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = %D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES = %D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC = %D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS = %D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION = %D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC = %D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION = %D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC = %D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION = %D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC = %D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION = %D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = %D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = %D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = %D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = %D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = %D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = %D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = %D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS = %D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG = %D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC = %D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED = %D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED = %D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + 1
%EQUATE `D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE = %D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + 1
%EQUATE `D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID = %D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE = %D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED = %D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED = %D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER = %D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT = %D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR = %D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + 1
%EQUATE `D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH = %D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + 1
%EQUATE `D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH = %D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + 1
%EQUATE `D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = %D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY = %D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID = %D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE = %D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE = %D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE = %D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE = %D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + 1
%EQUATE `D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE = %D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + 1
%EQUATE `D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX = %D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE = %D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID = %D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID = %D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID = %D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID = %D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID = %D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE = %D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS = %D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED = %D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN = %D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED = %D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE = %D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS = %D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED = %D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN = %D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED = %D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE = %D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS = %D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED = %D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN = %D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED = %D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE = %D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS = %D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED = %D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN = %D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE = %D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED = %D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED = %D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED = %D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + 1
%EQUATE `D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS = %D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + 1
%EQUATE `D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN = %D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE = %D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_REF_THREADING_MODE = %D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + 1
%EQUATE `D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION = %D3D10_MESSAGE_ID_REF_THREADING_MODE + 1
%EQUATE `D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION = %D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + 1
%EQUATE `D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION = %D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + 1
%EQUATE `D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE = %D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION + 1
%EQUATE `D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER = %D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + 1
%EQUATE `D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY = %D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + 1
%EQUATE `D3D10_MESSAGE_ID_REF_INFO = %D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW = %D3D10_MESSAGE_ID_REF_INFO + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW = %D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW = %D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW = %D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW = %D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL = %D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH = %D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = %D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID = %D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL = %D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH = %D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH = %D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED = %D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY = %D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED = %D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED = %D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED = %D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER = %D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = %D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = %D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = %D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = %D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = %D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN = %D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN = %D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET = %D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = %D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH = %D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW = %D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS = %D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH = %D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = %D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY = %D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEPREDICATE_INVALIDDESC = %D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER = %D3D10_MESSAGE_ID_CREATEPREDICATE_INVALIDDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED = %D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = %D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN = %D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN = %D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC = %D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + 1
%EQUATE `D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER = %D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC + 1
%EQUATE `D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = %D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + 1
%EQUATE `D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE = %D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED = %D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + 1
%EQUATE `D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION = %D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE = %D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS = %D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + 1
%EQUATE `D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION = %D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS = %D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN = %D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE = %D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS = %D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + 1
%EQUATE `D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL = %D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH = %D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE = %D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE = %D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = %D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT + 1
%EQUATE `D3D10_MESSAGE_ID_D3D10_MESSAGES_END = %D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH + 1
%EQUATE `D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START = &H100000
%EQUATE `D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED = %D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + 1
%EQUATE `D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS = %D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS = %D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS = %D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE = %D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS = %D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS = %D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + 1
%EQUATE `D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX = %D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS = %D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED = %D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS = %D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY = %D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK = %D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + 1
%EQUATE `D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK = %D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT = %D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE = %D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + 1
%EQUATE `D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE = %D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD = %D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET = %D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER = %D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE = %D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE = %D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES = %D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED = %D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + 1
%EQUATE `D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + 1
%EQUATE `D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED = %D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED = %D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED = %D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND = %D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + 1
%EQUATE `D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE = %D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + 1
%EQUATE `D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 = %D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED = %D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + 1
%EQUATE `D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO = %D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION = %D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED = %D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + 1
%EQUATE `D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR = %D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA = %D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR + 1
%EQUATE `D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP = %D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA + 1
%EQUATE `D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED = %D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP + 1
%EQUATE `D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT = %D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED + 1
%EQUATE `D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END = %D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT + 1
' // Size = 20 bytes
TYPE D3D10_MESSAGE DWORD
 Category AS DWORD ' D3D10_MESSAGE_CATEGORY enum
 Severity AS DWORD ' D3D10_MESSAGE_SEVERITY enum
 ID AS DWORD ' D3D10_MESSAGE_ID enum
 pDescription AS ASCIIZ PTR ' char *
 DescriptionByteLength AS DWORD ' SIZE_T
END TYPE
' // Size = 24 bytes
TYPE D3D10_INFO_QUEUE_FILTER_DESC DWORD
 NumCategories AS DWORD ' UINT
 pCategoryList AS DWORD PTR ' D3D10_MESSAGE_CATEGORY *
 NumSeverities AS DWORD ' UINTY
 pSeverityList AS DWORD PTR ' D3D10_MESSAGE_SEVERITY *
 NumIDs AS DWORD ' UINT
 pIDList AS DWORD PTR ' D3D10_MESSAGE_ID*
END TYPE
' // Size = 48 bytes
TYPE D3D10_INFO_QUEUE_FILTER DWORD
 AllowList AS D3D10_INFO_QUEUE_FILTER_DESC
 DenyList AS D3D10_INFO_QUEUE_FILTER_DESC
END TYPE
%EQUATE `D3D10_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024
' ########################################################################################
' ID3D10InfoQueue interface
' IID = 1B940B17-2642-4D1F-AB1F-B99BAD0C395F
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%ID3D10InfoQueue_INTERFACE_DEFINED)
 %ID3D10InfoQueue_INTERFACE_DEFINED = 1
INTERFACE ID3D10InfoQueue $IID_ID3D10InfoQueue
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetMessageCountLimit ( ' VTable offset = 12
 BYVAL MessageCountLimit AS QUAD
 ) AS LONG
 ' =====================================================================================
 METHOD ClearStoredMessages ( ' VTable offset = 16
 ) ' void
 ' =====================================================================================
 METHOD GetMessage ( ' VTable offset = 20
 BYVAL MessageIndex AS QUAD
 , BYREF pMessage AS D3D10_MESSAGE
 , BYREF pMessageByteLength AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetNumMessagesAllowedByStorageFilter ( ' VTable offset = 24
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD GetNumMessagesDeniedByStorageFilter ( ' VTable offset = 28
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD GetNumStoredMessages ( ' VTable offset = 32
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD GetNumStoredMessagesAllowedByRetrievalFilter ( ' VTable offset = 36
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD GetNumMessagesDiscardedByMessageCountLimit ( ' VTable offset = 40
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD GetMessageCountLimit ( ' VTable offset = 44
 ) AS QUAD ' UINT64
 ' =====================================================================================
 METHOD AddStorageFilterEntries ( ' VTable offset = 48
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 ) AS LONG
 ' =====================================================================================
 METHOD GetStorageFilter ( ' VTable offset = 52
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 , BYREF pFilterByteLength AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD ClearStorageFilter ( ' VTable offset = 56
 ) ' void
 ' =====================================================================================
 METHOD PushEmptyStorageFilter ( ' VTable offset = 60
 ) AS LONG
 ' =====================================================================================
 METHOD PushCopyOfStorageFilter ( ' VTable offset = 64
 ) AS LONG
 ' =====================================================================================
 METHOD PushStorageFilter ( ' VTable offset = 68
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 ) AS LONG
 ' =====================================================================================
 METHOD PopStorageFilter ( ' VTable offset = 60
 ) ' void
 ' =====================================================================================
 METHOD GetStorageFilterStackSize ( ' VTable offset = 64
 ) AS DWORD ' UINT
 ' =====================================================================================
 METHOD AddRetrievalFilterEntries ( ' VTable offset = 68
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 ) AS LONG
 ' =====================================================================================
 METHOD GetRetrievalFilter ( ' VTable offset = 72
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 , BYREF pFilterByteLength AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD ClearRetrievalFilter ( ' VTable offset = 64
 ) ' void
 ' =====================================================================================
 METHOD PushEmptyRetrievalFilter ( ' VTable offset = 68
 ) AS LONG
 ' =====================================================================================
 METHOD PushCopyOfRetrievalFilter ( ' VTable offset = 72
 ) AS LONG
 ' =====================================================================================
 METHOD PushRetrievalFilter ( ' VTable offset = 76
 BYREF pFilter AS D3D10_INFO_QUEUE_FILTER
 ) AS LONG
 ' =====================================================================================
 METHOD PopRetrievalFilter ( ' VTable offset = 80
 ) ' void
 ' =====================================================================================
 METHOD GetRetrievalFilterStackSize ( ' VTable offset = 84
 ) AS DWORD ' UINT
 ' =====================================================================================
 METHOD AddMessage ( ' VTable offset = 88
 BYVAL Category AS DWORD
 , BYVAL Severity AS DWORD
 , BYVAL ID AS DWORD
 , BYREF pDescription AS ASCIIZ
 ) AS LONG
 ' =====================================================================================
 METHOD AddApplicationMessage ( ' VTable offset = 92
 BYVAL Severity AS DWORD
 , BYREF pDescription AS ASCIIZ
 ) AS LONG
 ' =====================================================================================
 METHOD SetBreakOnCategory ( ' VTable offset = 96
 BYVAL Category AS DWORD
 , BYVAL bEnable AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD SetBreakOnSeverity ( ' VTable offset = 100
 BYVAL Severity AS DWORD
 , BYVAL bEnable AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD SetBreakOnID ( ' VTable offset = 104
 BYVAL ID AS DWORD
 , BYVAL bEnable AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetBreakOnCategory ( ' VTable offset = 108
 BYVAL Category AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetBreakOnSeverity ( ' VTable offset = 112
 BYVAL Severity AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetBreakOnID ( ' VTable offset = 116
 BYVAL ID AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD SetMuteDebugOutput ( ' VTable offset = 120
 BYVAL bMute AS LONG
 ) ' void
 ' =====================================================================================
 METHOD GetMuteDebugOutput ( ' VTable offset = 124
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __ID3D10InfoQueue_INTERFACE_DEFINED__ */
'#define D3D10_REGKEY_PATH __TEXT("Software\\Microsoft\\Direct3D")
'#define D3D10_MUTE_DEBUG_OUTPUT __TEXT("MuteDebugOutput")
'#define D3D10_ENABLE_BREAK_ON_MESSAGE __TEXT("EnableBreakOnMessage")
'#define D3D10_INFOQUEUE_STORAGE_FILTER_OVERRIDE __TEXT("InfoQueueStorageFilterOverride")
'#define D3D10_MUTE_CATEGORY __TEXT("Mute_CATEGORY_%s")
'#define D3D10_MUTE_SEVERITY __TEXT("Mute_SEVERITY_%s")
'#define D3D10_MUTE_ID_STRING __TEXT("Mute_ID_%s")
'#define D3D10_MUTE_ID_DECIMAL __TEXT("Mute_ID_%d")
'#define D3D10_UNMUTE_SEVERITY_INFO __TEXT("Unmute_SEVERITY_INFO")
'#define D3D10_BREAKON_CATEGORY __TEXT("BreakOn_CATEGORY_%s")
'#define D3D10_BREAKON_SEVERITY __TEXT("BreakOn_SEVERITY_%s")
'#define D3D10_BREAKON_ID_STRING __TEXT("BreakOn_ID_%s")
'#define D3D10_BREAKON_ID_DECIMAL __TEXT("BreakOn_ID_%d")
'#define D3D10_APPSIZE_STRING __TEXT("Size")
'#define D3D10_APPNAME_STRING __TEXT("Name")
$D3D10_REGKEY_PATH = "Software\Microsoft\Direct3D"
$D3D10_MUTE_DEBUG_OUTPUT = "MuteDebugOutput"
$D3D10_ENABLE_BREAK_ON_MESSAGE = "EnableBreakOnMessage"
$D3D10_INFOQUEUE_STORAGE_FILTER_OVERRIDE = "InfoQueueStorageFilterOverride"
$D3D10_MUTE_CATEGORY = "Mute_CATEGORY_%s"
$D3D10_MUTE_SEVERITY = "Mute_SEVERITY_%s"
$D3D10_MUTE_ID_STRING = "Mute_ID_%s"
$D3D10_MUTE_ID_DECIMAL = "Mute_ID_%d"
$D3D10_UNMUTE_SEVERITY_INFO = "Unmute_SEVERITY_INFO"
$D3D10_BREAKON_CATEGORY = "BreakOn_CATEGORY_%s"
$D3D10_BREAKON_SEVERITY = "BreakOn_SEVERITY_%s"
$D3D10_BREAKON_ID_STRING = "BreakOn_ID_%s"
$D3D10_BREAKON_ID_DECIMAL = "BreakOn_ID_%d"
$D3D10_APPSIZE_STRING = "Size"
$D3D10_APPNAME_STRING = "Name"
#ENDIF
