1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Correções em GraphicsDevice

This commit is contained in:
Danilo 2024-11-14 21:22:52 -03:00
parent 60ff2b1d83
commit 18f487a5e4
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,8 @@ namespace xna {
std::shared_ptr<RenderTarget2D> RenderTarget2D;
intptr_t WindowHandle{ 0 };
inline static constexpr D3D_FEATURE_LEVEL FeatureLevels[7] =
static constexpr int FeatureLevelCount = 7;
inline static constexpr D3D_FEATURE_LEVEL FeatureLevels[FeatureLevelCount] =
{
D3D_FEATURE_LEVEL_11_1,
D3D_FEATURE_LEVEL_11_0,

View File

@ -14,7 +14,6 @@ namespace xna {
#if _DEBUG
createDeviceFlags = D3D11_CREATE_DEVICE_FLAG::D3D11_CREATE_DEVICE_DEBUG;
#endif
const auto& pAdapter = GraphicsAdapter::UseNullDevice() ? NULL : currentAdapter.Implementation->Adapter.Get();
//
@ -39,7 +38,7 @@ namespace xna {
//_In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels,
FeatureLevels,
//UINT FeatureLevels,
7,
static_cast<UINT>(FeatureLevelCount),
//UINT SDKVersion,
D3D11_SDK_VERSION,
//_COM_Outptr_opt_ ID3D11Device** ppDevice