ReactOS 0.4.17-dev-934-g091855f
d3d10_1.idl File Reference

Go to the source code of this file.

Classes

struct  D3D10_RENDER_TARGET_BLEND_DESC1
 
struct  D3D10_BLEND_DESC1
 
interface  struct
 
struct  D3D10_SHADER_RESOURCE_VIEW_DESC1
 
interface  ID3D10ShaderResourceView1
 
interface  ID3D10Device1
 

Typedefs

typedef enum D3D10_FEATURE_LEVEL1 D3D10_FEATURE_LEVEL1
 
typedef struct D3D10_RENDER_TARGET_BLEND_DESC1 D3D10_RENDER_TARGET_BLEND_DESC1
 
typedef struct D3D10_BLEND_DESC1 D3D10_BLEND_DESC1
 
typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1
 
typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1 D3D10_SHADER_RESOURCE_VIEW_DESC1
 

Enumerations

enum  D3D10_FEATURE_LEVEL1 {
  D3D10_FEATURE_LEVEL_10_0 = 0xa000 , D3D10_FEATURE_LEVEL_10_1 = 0xa100 , D3D10_FEATURE_LEVEL_9_1 = 0x9100 , D3D10_FEATURE_LEVEL_9_2 = 0x9200 ,
  D3D10_FEATURE_LEVEL_9_3 = 0x9300
}
 

Functions

HRESULT WINAPI D3D10CreateDevice1 (IDXGIAdapter *, D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1, UINT, ID3D10Device1 **)
 
HRESULT __stdcall D3D10CreateDeviceAndSwapChain1 (IDXGIAdapter *adapter, enum D3D10_DRIVER_TYPE driver_type, HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 feature_level, UINT sdk_version, DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D10Device1 **device)
 

Variables

const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff
 
const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32
 
const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32
 
const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128
 
const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32
 
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1
 
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32
 
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1
 
const UINT D3D10_1_SHADER_MAJOR_VERSION = 4
 
const UINT D3D10_1_SHADER_MINOR_VERSION = 1
 
const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048
 
const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256
 
const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4
 
const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1
 
const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64
 
const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32
 
const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8
 
const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32
 
const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32
 
UINT MipLevels
 
UINT First2DArrayFace
 
UINT NumCubes
 
 D3D10_TEXCUBE_ARRAY_SRV1
 
const UINT D3D10_1_SDK_VERSION = 0x20
 

Typedef Documentation

◆ D3D10_BLEND_DESC1

◆ D3D10_FEATURE_LEVEL1

◆ D3D10_RENDER_TARGET_BLEND_DESC1

◆ D3D10_SHADER_RESOURCE_VIEW_DESC1

◆ D3D10_SRV_DIMENSION1

Definition at line 99 of file d3d10_1.idl.

Enumeration Type Documentation

◆ D3D10_FEATURE_LEVEL1

Enumerator
D3D10_FEATURE_LEVEL_10_0 
D3D10_FEATURE_LEVEL_10_1 
D3D10_FEATURE_LEVEL_9_1 
D3D10_FEATURE_LEVEL_9_2 
D3D10_FEATURE_LEVEL_9_3 

Definition at line 52 of file d3d10_1.idl.

53{
D3D10_FEATURE_LEVEL1
Definition: d3d10_1.idl:53
@ D3D10_FEATURE_LEVEL_10_0
Definition: d3d10_1.idl:54
@ D3D10_FEATURE_LEVEL_9_1
Definition: d3d10_1.idl:56
@ D3D10_FEATURE_LEVEL_10_1
Definition: d3d10_1.idl:55
@ D3D10_FEATURE_LEVEL_9_3
Definition: d3d10_1.idl:58
@ D3D10_FEATURE_LEVEL_9_2
Definition: d3d10_1.idl:57

Function Documentation

◆ D3D10CreateDevice1()

HRESULT WINAPI D3D10CreateDevice1 ( IDXGIAdapter *  adapter,
D3D10_DRIVER_TYPE  driver_type,
HMODULE  swrast,
UINT  flags,
D3D10_FEATURE_LEVEL1  hw_level,
UINT  sdk_version,
ID3D10Device1 **  device 
)

Definition at line 182 of file d3d10_1_main.c.

184{
186}
static HRESULT d3d10_create_device1(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type, HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 hw_level, UINT sdk_version, ID3D10Device1 **device)
Definition: d3d10_1_main.c:69
return adapter
GLbitfield flags
Definition: glext.h:7161
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL UINT UINT sdk_version
Definition: hlsl_d3d11.c:29
static D3D_DRIVER_TYPE driver_type
Definition: hlsl_d3d11.c:27
static D3D_DRIVER_TYPE HMODULE swrast
Definition: hlsl_d3d11.c:28
Definition: devices.h:37

Referenced by d2d_factory_get_device(), and D3DX10CreateDevice().

◆ D3D10CreateDeviceAndSwapChain1()

HRESULT __stdcall D3D10CreateDeviceAndSwapChain1 ( IDXGIAdapter *  adapter,
enum D3D10_DRIVER_TYPE  driver_type,
HMODULE  swrast,
UINT  flags,
D3D10_FEATURE_LEVEL1  feature_level,
UINT  sdk_version,
DXGI_SWAP_CHAIN_DESC *  swapchain_desc,
IDXGISwapChain **  swapchain,
ID3D10Device1 **  device 
)

Definition at line 188 of file d3d10_1_main.c.

191{
192 IDXGIDevice *dxgi_device;
194 HRESULT hr;
195
196 TRACE("adapter %p, driver_type %s, swrast %p, flags %#x, "
197 "feature_level %s, sdk_version %d, swapchain_desc %p, swapchain %p, device %p.\n",
199 debug_d3d10_feature_level(feature_level), sdk_version, swapchain_desc, swapchain, device);
200
201 if (swapchain)
202 *swapchain = NULL;
203
204 if (!device)
205 return E_INVALIDARG;
206
207 /* Avoid forwarding to D3D10CreateDevice1(), since it breaks applications
208 * hooking these entry-points. */
210 {
211 WARN("Failed to create a device, returning %#lx.\n", hr);
212 *device = NULL;
213 return hr;
214 }
215
216 if (swapchain)
217 {
218 if (FAILED(hr = ID3D10Device1_QueryInterface(*device, &IID_IDXGIDevice, (void **)&dxgi_device)))
219 {
220 ERR("Failed to get a dxgi device from the d3d10 device, returning %#lx.\n", hr);
221 goto cleanup;
222 }
223
224 hr = IDXGIDevice_GetAdapter(dxgi_device, &adapter);
225 IDXGIDevice_Release(dxgi_device);
226 if (FAILED(hr))
227 {
228 ERR("Failed to get the device adapter, returning %#lx.\n", hr);
229 goto cleanup;
230 }
231
232 hr = IDXGIAdapter_GetParent(adapter, &IID_IDXGIFactory, (void **)&factory);
233 IDXGIAdapter_Release(adapter);
234 if (FAILED(hr))
235 {
236 ERR("Failed to get the adapter factory, returning %#lx.\n", hr);
237 goto cleanup;
238 }
239
240 hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)*device, swapchain_desc, swapchain);
241 IDXGIFactory_Release(factory);
242 if (FAILED(hr))
243 {
244 WARN("Failed to create a swapchain, returning %#lx.\n", hr);
245 goto cleanup;
246 }
247
248 TRACE("Created IDXGISwapChain %p.\n", *swapchain);
249 }
250
251 return S_OK;
252
253cleanup:
254 ID3D10Device1_Release(*device);
255 *device = NULL;
256 return hr;
257}
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
static const char * debug_d3d10_feature_level(D3D10_FEATURE_LEVEL1 feature_level)
Definition: d3d10_1_main.c:47
static const char * debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
Definition: d3d10_1_main.c:32
#define E_INVALIDARG
Definition: ddrawi.h:101
HRESULT hr
Definition: delayimp.cpp:582
#define NULL
Definition: types.h:112
static void cleanup(void)
Definition: main.c:1335
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define TRACE(s)
Definition: solgame.cpp:4
Definition: main.c:439

Referenced by D3DX10CreateDeviceAndSwapChain().

Variable Documentation

◆ D3D10_1_DEFAULT_SAMPLE_MASK

const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff

Definition at line 24 of file d3d10_1.idl.

◆ D3D10_1_GS_INPUT_REGISTER_COUNT

const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32

Definition at line 25 of file d3d10_1.idl.

◆ D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT

const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32

Definition at line 26 of file d3d10_1.idl.

◆ D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT

const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32

Definition at line 28 of file d3d10_1.idl.

◆ D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS

const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128

Definition at line 27 of file d3d10_1.idl.

◆ D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT

const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32

Definition at line 30 of file d3d10_1.idl.

◆ D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS

const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1

Definition at line 29 of file d3d10_1.idl.

◆ D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT

const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1

Definition at line 31 of file d3d10_1.idl.

◆ D3D10_1_SDK_VERSION

const UINT D3D10_1_SDK_VERSION = 0x20

Definition at line 150 of file d3d10_1.idl.

Referenced by d2d_factory_get_device(), and D3DX10CreateDeviceAndSwapChain().

◆ D3D10_1_SHADER_MAJOR_VERSION

const UINT D3D10_1_SHADER_MAJOR_VERSION = 4

Definition at line 32 of file d3d10_1.idl.

◆ D3D10_1_SHADER_MINOR_VERSION

const UINT D3D10_1_SHADER_MINOR_VERSION = 1

Definition at line 33 of file d3d10_1.idl.

◆ D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES

const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048

Definition at line 34 of file d3d10_1.idl.

◆ D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES

const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256

Definition at line 35 of file d3d10_1.idl.

◆ D3D10_1_SO_BUFFER_SLOT_COUNT

const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4

Definition at line 36 of file d3d10_1.idl.

◆ D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER

const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1

Definition at line 37 of file d3d10_1.idl.

◆ D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT

const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64

Definition at line 38 of file d3d10_1.idl.

◆ D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT

const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32

Definition at line 39 of file d3d10_1.idl.

◆ D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT

const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8

Definition at line 40 of file d3d10_1.idl.

◆ D3D10_1_VS_INPUT_REGISTER_COUNT

const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32

Definition at line 41 of file d3d10_1.idl.

◆ D3D10_1_VS_OUTPUT_REGISTER_COUNT

const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32

Definition at line 42 of file d3d10_1.idl.

◆ D3D10_TEXCUBE_ARRAY_SRV1

D3D10_TEXCUBE_ARRAY_SRV1

Definition at line 97 of file d3d10_1.idl.

◆ First2DArrayFace

UINT First2DArrayFace

Definition at line 95 of file d3d10_1.idl.

◆ MipLevels

UINT MipLevels

Definition at line 94 of file d3d10_1.idl.

◆ NumCubes

UINT NumCubes

Definition at line 96 of file d3d10_1.idl.