1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-13 07:54:32 +01:00
dxvk/src/util/com/com_guid.cpp

29 lines
943 B
C++
Raw Normal View History

2017-10-11 00:41:56 +02:00
#include "com_guid.h"
#include "../../d3d11/d3d11_interfaces.h"
2017-10-11 15:31:36 +02:00
#include "../../dxgi/dxgi_interfaces.h"
2017-10-11 00:41:56 +02:00
std::ostream& operator << (std::ostream& os, REFIID guid) {
2018-02-23 00:01:10 -08:00
os << std::hex << std::setfill('0')
<< std::setw(8) << guid.Data1 << '-';
2017-10-11 00:41:56 +02:00
2018-02-23 00:01:10 -08:00
os << std::hex << std::setfill('0')
<< std::setw(4) << guid.Data2 << '-';
2017-10-11 00:41:56 +02:00
2018-02-23 00:01:10 -08:00
os << std::hex << std::setfill('0')
<< std::setw(4) << guid.Data3 << '-';
2017-10-11 00:41:56 +02:00
2018-02-23 00:01:10 -08:00
os << std::hex << std::setfill('0')
<< std::setw(2) << static_cast<short>(guid.Data4[0])
<< std::setw(2) << static_cast<short>(guid.Data4[1])
2017-10-11 00:41:56 +02:00
<< '-'
2018-02-23 00:01:10 -08:00
<< 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]);
2017-10-11 00:41:56 +02:00
return os;
}