So I am currently coding a D3D12 engine and was wondering what the D3D12 equivalent of this D3D9 function is ?
direct3D = Direct3DCreate9(D3D_SDK_VERSION);
So I am currently coding a D3D12 engine and was wondering what the D3D12 equivalent of this D3D9 function is ?
direct3D = Direct3DCreate9(D3D_SDK_VERSION);
The closest equivalent is D3D12CreateDevice. It's used for example like this:
hr = D3D12CreateDevice( adapter, D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS( &device ) );
There is no distinct equivalent, the closest could be CreateDXGIFactory
to me, as it is the access point to adapters and outputs.
But if you are asking that kind of question, d3d12 is not for you. Unless you are already a d3d11 more than expert everyday user working on a triple A kind graphic engine, d3d12 is not what you are looking for. It is better to stick to d3d11.