1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/util/com/com_guid.cpp

36 lines
1.6 KiB
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"
const GUID IDXGIVkAdapter::guid = {0x907bf281,0xea3c,0x43b4,{0xa8,0xe4,0x9f,0x23,0x11,0x07,0xb4,0xff}};
const GUID IDXGIVkMonitorInfo::guid = {0xc06a236f,0x5be3,0x448a,{0x89,0x43,0x89,0xc6,0x11,0xc0,0xc2,0xc1}};
const GUID IDXGIVkInteropDevice::guid = {0xe2ef5fa5,0xdc21,0x4af7,{0x90,0xc4,0xf6,0x7e,0xf6,0xa0,0x93,0x23}};
const GUID IDXGIVkInteropSurface::guid = {0x5546cf8c,0x77e7,0x4341,{0xb0,0x5d,0x8d,0x4d,0x50,0x00,0xe7,0x7d}};
const GUID IDXGIVkSwapChain::guid = {0x104001a6,0x7f36,0x4957,{0xb9,0x32,0x86,0xad,0xe9,0x56,0x7d,0x91}};
const GUID IWineDXGISwapChainFactory::guid = {0x53cb4ff0,0xc25a,0x4164,{0xa8,0x91,0x0e,0x83,0xdb,0x0a,0x7a,0xac}};
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;
}