1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once #include <d3d12.h> #include <dxgi1_4.h> #include <directx/d3dx12.h> #define THROW(error) throw exception(error, __FILE__, __LINE__) #define ThrowIfFailed(result) \ {\ if (result != S_OK) \ {\ THROW(result);\ }\ } //#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), static_cast<void**>(ppType)