[PATCH 07/10] d3d10_1: Implement D3D10CreateDeviceAndSwapChain1().

Henri Verbeet hverbeet at gmail.com
Fri Mar 4 05:50:19 CST 2016


On 4 March 2016 at 11:43, Józef Kucia <jkucia at codeweavers.com> wrote:
> It doesn't seem to be easy to declare D3D10CreateDeviceAndSwapChain1()
> without using cpp_quote() because D3D10_DRIVER_TYPE is unknown to idl
> (it's declared in d3d10misc.h). My knowledge about idl is limited
> so maybe someone knows better.
The easiest thing to do would be to use "enum D3D10_DRIVER_TYPE"
instead of "D3D10_DRIVER_TYPE". I wouldn't be opposed to just using
idl for d3d10misc.h either though.

> +cpp_quote("HRESULT WINAPI D3D10CreateDeviceAndSwapChain1(IDXGIAdapter *,")
> +cpp_quote("    D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1,")
> +cpp_quote("    UINT, DXGI_SWAP_CHAIN_DESC *, IDXGISwapChain **, ID3D10Device1 **);")
I'd prefer this with parameter names either way.



More information about the wine-devel mailing list