// Copyright 2022, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Misc D3D11/12 helper routines. * @author Ryan Pavlik * @ingroup aux_d3d */ #pragma once #include "xrt/xrt_defines.h" #include "util/u_logging.h" #include #include #include #include namespace xrt::auxiliary::d3d::d3d11 { /** * @brief Create a D3D11 Device object * * @param adapter optional: adapter to create on. * @param log_level The level to compare against for internal log messages * * @throws wil::ResultException in case of error * * @return std::pair, wil::com_ptr> */ std::pair, wil::com_ptr> createDevice(const wil::com_ptr &adapter = nullptr, u_logging_level log_level = U_LOGGING_INFO); } // namespace xrt::auxiliary::d3d::d3d11