Computer graphics in Game development
Ivan Belyavtsev
19.02.2021
To engage API validation:
D3D12GetDebugInterface
function to get debug controllerEnableDebugLayer
method of the debug controllerDXGI_CREATE_FACTORY_DEBUG
flag in further DXGI factory creation [1]CreateDXGIFactory*
function to create a DXGI factory (don’t forget about flags)EnumAdapters*
method to find HWEnumAdapters
for adapter #0 gives us a pointer to the primary display adapter [1]D3D12CreateDevice
function to create a DX12 deviceCreateCommandQueue
method of DX12 device to create a direct queue [1]CreateSwapChainForHwnd
method of the DXGI factory with Direct queue, window handler and swap chain descriptorMakeWindowAssociation
method of the DXGI factory with window handler and DXGI_MWA_NO_ALT_ENTER