Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Checking architecture not working for me

$
0
0

(if the error is pity, please, forgive me, I am new to C++)

This code:

D3D12_FEATURE_DATA_D3D12_OPTIONS tiers;
if (FAILED(adapterList[i].Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &tiers, sizeof(tiers)))) {
    std::cout << "Failed to query the options for adapter " << i << "." << std::endl;
}
else {
    std::cout << "Options query for adapter " << i << " SUCCEEDED" << std::endl;
}

D3D12_FEATURE_DATA_ARCHITECTURE arch;
if (FAILED(adapterList[i].Device->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE, &arch, sizeof(arch))))
{
    std::cout << "Failed to query the architecture for adapter " << i << "." << std::endl;
}
else {
    std::cout << "Architecture query for adapter " << i << " SUCCEEDED" << std::endl;
}

is giving me this output:

Options query for adapter 0 SUCCEEDED
Failed to query the architecture for adapter 0.
Options query for adapter 1 SUCCEEDED
Failed to query the architecture for adapter 1.
(the shown code is inside a for-loop)

(maybe helpful details:
I read there is a D3D12_FEATURE_DATA_ARCHITECTURE1 but VS 2017 intellisense is not detecting it. I am using Intel C++ compiler through VS)


Viewing all articles
Browse latest Browse all 17560

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>