CMCHTPC / DelphiDX12

DirectX 12 Headers for Delphi and FPC
92 stars 35 forks source link

IDXGIOutput1.GetDisplayModeList1 last param #10

Open TopPlay opened 6 years ago

TopPlay commented 6 years ago

MSDN ` UINT num = 0; DXGI_FORMAT format = DXGI_FORMAT_R32G32B32A32_FLOAT; UINT flags = DXGI_ENUM_MODES_INTERLACED;

pOutput->GetDisplayModeList1( format, flags, &num, 0);

...

DXGI_MODE_DESC1 * pDescs = new DXGI_MODE_DESC1[num]; pOutput->GetDisplayModeList1( format, flags, &num, pDescs); ` that mean last param [pDesc] have not [out] flag because it can be [nil] to get number of Desc array;