// Copyright 2010 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #include #include #include #include #include "Common/Common.h" #include "Common/CommonTypes.h" #include "Common/MsgHandler.h" #define CHECK(cond, Message, ...) \ if (!(cond)) \ { \ PanicAlert("%s failed in %s at line %d: " Message, __func__, __FILE__, __LINE__, __VA_ARGS__); \ } namespace DX11 { using Microsoft::WRL::ComPtr; class SwapChain; namespace D3D { extern ComPtr dxgi_factory; extern ComPtr device; extern ComPtr device1; extern ComPtr context; extern D3D_FEATURE_LEVEL feature_level; bool Create(u32 adapter_index, bool enable_debug_layer); void Destroy(); // Returns a list of supported AA modes for the current device. std::vector GetAAModes(u32 adapter_index); // Checks for support of the given texture format. bool SupportsTextureFormat(DXGI_FORMAT format); } // namespace D3D } // namespace DX11