oa::Device

Device class in the OA Core public surface.

Public Methods

bool oa::Device::isGpu()
bool oa::Device::isHost()
bool oa::Device::isVulkan()
bool oa::Device::operator!=(const Device & inOther)
bool oa::Device::operator==(const Device & inOther)

Public Data Members

indexoa::I32field
typeDeviceTypefield

Constructor & Destructor Documentation

oa::Device::Device( DeviceType inType, oa::I32 inIndex = 0 )
No public source comment is attached to this declaration.

Parameters

inType
DeviceType

inIndex
oa::I32

Default: 0

Public Method Documentation

bool oa::Device::isGpu()
Any vulkan physical device kind (discrete, integrated, VkCpu/OAV, virtual, other). Not hardware "GPU" only.

Returns

bool

The declared return value.

bool oa::Device::isHost()
Methods. Non-vulkan sentinel only (no VkDevice). Not "CPU execution": DeviceType::VkCpu is still isVulkan().

Returns

bool

The declared return value.

bool oa::Device::isVulkan()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

bool oa::Device::operator!=( const Device & inOther )
No public source comment is attached to this declaration.

Parameters

inOther
const Device &

Returns

bool

The declared return value.

bool oa::Device::operator==( const Device & inOther )
Operators.

Parameters

inOther
const Device &

Returns

bool

The declared return value.