icd/api/vk_memory.cpp
void Memory::GetPrimaryDeviceIndex(
    uint32_t  maxDevices,
    uint32_t  allocationMask,
    uint32_t* pIndex,
    bool*     pMultiInstance)
{
    if (Util::CountSetBits(allocationMask) > 1)
    {
        *pMultiInstance = true;
    }
    else
    {
        *pMultiInstance = false;
    }

    Util::BitMaskScanForward(pIndex, allocationMask);
}
// =====================================================================================================================
// The function is used to acquire the primary index in case it is not a multi intance allocation.
// The returned pIndex refers to the index of least significant set bit of the allocationMask.
The function is used to acquire the primary index in case it is not a multi intance allocation.
The returned pIndex refers to the index of least significant set bit of the allocationMask.
The function is used to acquire the primary index in case it is not a multi intance allocation . The returned pIndex refers to the index of least significant set bit of the allocationMask .
void Memory::GetPrimaryDeviceIndex(
    uint32_t  maxDevices,
    uint32_t  allocationMask,
    uint32_t* pIndex,
    bool*     pMultiInstance)
{
    if (Util::CountSetBits(allocationMask) > 1)
    {
        *pMultiInstance = true;
    }
    else
    {
        *pMultiInstance = false;
    }
    Util::BitMaskScanForward(pIndex, allocationMask);
}
void Memory :: GetPrimaryDeviceIndex ( uint32_t maxDevices , uint32_t allocationMask , uint32_t * pIndex , bool * pMultiInstance ) { if ( Util :: CountSetBits ( allocationMask ) > 1 ) { * pMultiInstance = true ; } else { * pMultiInstance = false ; } Util :: BitMaskScanForward ( pIndex , allocationMask ) ; }
The function is used to acquire the primary index in case it is not a multi intance allocation.
The function is used to acquire the primary index in case it is not a multi intance allocation .