1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-21 02:52:10 +01:00
dxvk/src/util/com/com_guid.cpp
2020-02-18 20:25:05 +01:00

29 lines
943 B
C++

#include "com_guid.h"
#include "../../d3d11/d3d11_interfaces.h"
#include "../../dxgi/dxgi_interfaces.h"
std::ostream& operator << (std::ostream& os, REFIID guid) {
os << std::hex << std::setfill('0')
<< std::setw(8) << guid.Data1 << '-';
os << std::hex << std::setfill('0')
<< std::setw(4) << guid.Data2 << '-';
os << std::hex << std::setfill('0')
<< std::setw(4) << guid.Data3 << '-';
os << std::hex << std::setfill('0')
<< std::setw(2) << static_cast<short>(guid.Data4[0])
<< std::setw(2) << static_cast<short>(guid.Data4[1])
<< '-'
<< std::setw(2) << static_cast<short>(guid.Data4[2])
<< std::setw(2) << static_cast<short>(guid.Data4[3])
<< std::setw(2) << static_cast<short>(guid.Data4[4])
<< std::setw(2) << static_cast<short>(guid.Data4[5])
<< std::setw(2) << static_cast<short>(guid.Data4[6])
<< std::setw(2) << static_cast<short>(guid.Data4[7]);
return os;
}