24const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff;
25const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32;
26const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
27const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128;
28const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32;
29const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
30const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
31const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
32const UINT D3D10_1_SHADER_MAJOR_VERSION = 4;
33const UINT D3D10_1_SHADER_MINOR_VERSION = 1;
34const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
35const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256;
36const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4;
37const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1;
38const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64;
39const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32;
40const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8;
41const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32;
42const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32;
45cpp_quote("#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP (0.6)")
46cpp_quote("#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP (0.6f)")
49cpp_quote("#include <d3d10_1shader.h>")
52typedef enum D3D10_FEATURE_LEVEL1
54 D3D10_FEATURE_LEVEL_10_0 = 0xa000,
55 D3D10_FEATURE_LEVEL_10_1 = 0xa100,
56 D3D10_FEATURE_LEVEL_9_1 = 0x9100,
57 D3D10_FEATURE_LEVEL_9_2 = 0x9200,
58 D3D10_FEATURE_LEVEL_9_3 = 0x9300
59} D3D10_FEATURE_LEVEL1;
61typedef struct D3D10_RENDER_TARGET_BLEND_DESC1
65 D3D10_BLEND DestBlend;
66 D3D10_BLEND_OP BlendOp;
67 D3D10_BLEND SrcBlendAlpha;
68 D3D10_BLEND DestBlendAlpha;
69 D3D10_BLEND_OP BlendOpAlpha;
70 UINT8 RenderTargetWriteMask;
71} D3D10_RENDER_TARGET_BLEND_DESC1;
73typedef struct D3D10_BLEND_DESC1
75 BOOL AlphaToCoverageEnable;
76 BOOL IndependentBlendEnable;
77 D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT];
81 uuid(edad8d99-8a35-4d6d-8566-2ea276cde161),
84 pointer_default(unique)
86interface ID3D10BlendState1 : ID3D10BlendState
88 void GetDesc1([out] D3D10_BLEND_DESC1 *pDesc);
91typedef struct D3D10_TEXCUBE_ARRAY_SRV1
95 UINT First2DArrayFace;
97} D3D10_TEXCUBE_ARRAY_SRV1;
99typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1;
101typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1
104 D3D10_SRV_DIMENSION1 ViewDimension;
106 D3D10_BUFFER_SRV Buffer;
107 D3D10_TEX1D_SRV Texture1D;
108 D3D10_TEX1D_ARRAY_SRV Texture1DArray;
109 D3D10_TEX2D_SRV Texture2D;
110 D3D10_TEX2D_ARRAY_SRV Texture2DArray;
111 D3D10_TEX2DMS_SRV Texture2DMS;
112 D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray;
113 D3D10_TEX3D_SRV Texture3D;
114 D3D10_TEXCUBE_SRV TextureCube;
115 D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray;
117} D3D10_SHADER_RESOURCE_VIEW_DESC1;
120 uuid(9b7e4c87-342c-4106-a19f-4f2704f689f0),
123 pointer_default(unique)
125interface ID3D10ShaderResourceView1 : ID3D10ShaderResourceView
127 void GetDesc1([out] D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc);
131 uuid(9b7e4c8f-342c-4106-a19f-4f2704f689f0),
134 pointer_default(unique)
136interface ID3D10Device1 : ID3D10Device
138 HRESULT CreateShaderResourceView1(
139 [in] ID3D10Resource *pResource,
140 [in, out] const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc,
141 [out] ID3D10ShaderResourceView1 **ppSRView);
143 HRESULT CreateBlendState1(
144 [in] const D3D10_BLEND_DESC1 *pBlendStateDesc,
145 [out] ID3D10BlendState1 **ppBlendState);
147 D3D10_FEATURE_LEVEL1 GetFeatureLevel();
150const UINT D3D10_1_SDK_VERSION = 0x20;
152cpp_quote("HRESULT WINAPI D3D10CreateDevice1(IDXGIAdapter*,D3D10_DRIVER_TYPE,")
153cpp_quote(" HMODULE,UINT,D3D10_FEATURE_LEVEL1,UINT,ID3D10Device1**);")
155[local] HRESULT __stdcall D3D10CreateDeviceAndSwapChain1(IDXGIAdapter *adapter, enum D3D10_DRIVER_TYPE driver_type,
156 HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 feature_level, UINT sdk_version,
157 DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D10Device1 **device);
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const