8 #include <Utils\DebugUtils.h> 21 static void Init(
const HINSTANCE moduleInstanceHandle) noexcept;
23 __forceinline
static HWND GetWindowHandle() noexcept
27 __forceinline
static IDXGIFactory4& GetIDXGIFactory() noexcept
29 BRE_ASSERT(mDxgiFactory.Get() !=
nullptr);
30 return *mDxgiFactory.Get();
32 __forceinline
static ID3D12Device& GetDevice() noexcept
34 BRE_ASSERT(mDevice.Get() !=
nullptr);
35 return *mDevice.Get();
37 __forceinline
static std::size_t GetDescriptorHandleIncrementSize(
const D3D12_DESCRIPTOR_HEAP_TYPE descriptorHeapType)
39 BRE_ASSERT(mDevice.Get() !=
nullptr);
40 return mDevice.Get()->GetDescriptorHandleIncrementSize(descriptorHeapType);
44 static HWND mWindowHandle;
45 static Microsoft::WRL::ComPtr<IDXGIFactory4> mDxgiFactory;
46 static Microsoft::WRL::ComPtr<ID3D12Device> mDevice;
Definition: DirectXManager.h:12