#pragma once #include #include #include #include #include struct Direct3DDevice { Direct3DDevice(LUID adapterLuid) : m_adapterLuid(adapterLuid) {}; Direct3DDevice() { m_adapterLuid = LUID{}; } HRESULT Init(); LUID m_adapterLuid; Microsoft::WRL::ComPtr m_factory; Microsoft::WRL::ComPtr m_adapter; Microsoft::WRL::ComPtr m_device; Microsoft::WRL::ComPtr m_context; };