wisdom
Loading...
Searching...
No Matches
wisAdapterQueryGetAdapterCount Struct Reference

Detailed Description

Specification


To get the number of adapters available from an AdapterQuery, call:

C Version:

C Implementation Specific Version:
// Provided by Wisdom 0.7.0.
size_t wisVKAdapterQueryGetAdapterCount(const WisVKAdapterQuery* self);
// Provided by Wisdom 0.7.0.
size_t wisDX12AdapterQueryGetAdapterCount(const WisDX12AdapterQuery* self);

C++ Version:

namespace wis{
// Provided by Wisdom 0.7.0.
WIS_NODISCARD std::size_t AdapterQuery::GetAdapterCount() const noexcept;
}
C++ Implementation Specific Version:
namespace wis{
// Provided by Wisdom 0.7.0.
WIS_NODISCARD std::size_t VKAdapterQuery::GetAdapterCount() const noexcept;
// Provided by Wisdom 0.7.0.
WIS_NODISCARD std::size_t DX12AdapterQuery::GetAdapterCount() const noexcept;
}

Parameters


  • this self self is a pointer to the valid WisAdapterQuery instance.
  • return is a number of adapters present on the system.

Description


Returns the number of adapters that can be queried from the AdapterQuery instance. This number is fixed at the time of AdapterQuery creation and does not change during its lifetime. If no adapters are found, the function returns zero.

See Also