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:
parent
60ff2b1d83
commit
18f487a5e4
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user