d3d11.idl: Added some missing declarations.

This commit is contained in:
Jacek Caban 2013-09-11 14:44:43 +02:00 committed by Alexandre Julliard
parent 0e5d64cc44
commit 4de32753a2
1 changed files with 132 additions and 0 deletions

View File

@ -49,9 +49,22 @@ const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
const UINT D3D11_MAX_MAXANISOTROPY = 16;
const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
const UINT D3D11_SHADER_MAJOR_VERSION = 5;
const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
const UINT D3D11_SHADER_MAX_INTERFACES = 253;
const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
const UINT D3D11_SHADER_MAX_TYPES = 65535;
const UINT D3D11_SHADER_MINOR_VERSION = 0;
const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_DEFAULT {};")
@ -235,6 +248,47 @@ typedef enum D3D11_FILL_MODE
D3D11_FILL_SOLID
} D3D11_FILL_MODE;
typedef enum D3D11_FILTER_TYPE
{
D3D11_FILTER_TYPE_POINT = 0,
D3D11_FILTER_TYPE_LINEAR = 1
} D3D11_FILTER_TYPE;
const UINT D3D11_MIN_FILTER_SHIFT = 4;
const UINT D3D11_MAG_FILTER_SHIFT = 2;
const UINT D3D11_MIP_FILTER_SHIFT = 0;
const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
typedef enum D3D11_FILTER
{
D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
@ -316,6 +370,29 @@ typedef enum D3D11_QUERY
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
} D3D11_QUERY;
typedef enum D3D11_ASYNC_GETDATA_FLAG
{
D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
} D3D11_ASYNC_GETDATA_FLAG;
typedef enum D3D11_RESOURCE_MISC_FLAG
{
D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
} D3D11_RESOURCE_MISC_FLAG;
typedef struct D3D11_QUERY_DESC
{
D3D11_QUERY Query;
@ -415,6 +492,14 @@ typedef enum D3D11_STENCIL_OP
D3D11_STENCIL_OP_DECR
} D3D11_STENCIL_OP;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("}")
cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
cpp_quote("}")
cpp_quote("extern \"C\"{")
cpp_quote("#endif")
typedef struct D3D11_SUBRESOURCE_DATA
{
const void *pSysMem;
@ -673,6 +758,43 @@ typedef enum D3D11_COLOR_WRITE_ENABLE
(D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
} D3D11_COLOR_WRITE_ENABLE;
typedef enum D3D11_FORMAT_SUPPORT
{
D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000
} D3D11_FORMAT_SUPPORT;
typedef enum D3D11_CLEAR_FLAG
{
D3D11_CLEAR_DEPTH = 0x0001L,
D3D11_CLEAR_STENCIL = 0x0002L
} D3D11_CLEAR_FLAG;
typedef struct D3D11_RENDER_TARGET_BLEND_DESC
{
BOOL BlendEnable;
@ -1867,3 +1989,13 @@ cpp_quote("#include <d3d10misc.h>")
cpp_quote("#include <d3d10shader.h>")
cpp_quote("#include <d3d10effect.h>")
cpp_quote("#include <d3d10_1shader.h>")
cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")