From 0c99ee543ef936ef770f4b11fa77e08c2f736c1b Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 6 Jan 2020 20:53:34 -0800 Subject: Improved device feature reporting; added flags for query support --- Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp index ea00a31e..09313177 100644 --- a/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp @@ -139,9 +139,8 @@ RenderDeviceD3D12Impl::RenderDeviceD3D12Impl(IReferenceCounters* pRefCo { case D3D_FEATURE_LEVEL_12_0: case D3D_FEATURE_LEVEL_12_1: - m_DeviceCaps.MajorVersion = 12; - m_DeviceCaps.MinorVersion = FeatureLevel == D3D_FEATURE_LEVEL_12_1 ? 1 : 0; - m_DeviceCaps.bBindlessSupported = true; + m_DeviceCaps.MajorVersion = 12; + m_DeviceCaps.MinorVersion = FeatureLevel == D3D_FEATURE_LEVEL_12_1 ? 1 : 0; break; case D3D_FEATURE_LEVEL_11_0: @@ -159,13 +158,11 @@ RenderDeviceD3D12Impl::RenderDeviceD3D12Impl(IReferenceCounters* pRefCo default: UNEXPECTED("Unexpected D3D feature level"); } - m_DeviceCaps.bSeparableProgramSupported = True; - m_DeviceCaps.bMultithreadedResourceCreationSupported = True; // Direct3D12 supports shader model 5.1 on all feature levels (even on 11.0), // so bindless resources are always available. // https://docs.microsoft.com/en-us/windows/win32/direct3d12/hardware-feature-levels#feature-level-support - m_DeviceCaps.bBindlessSupported = True; + m_DeviceCaps.Features.BindlessResources = True; if (auto pDXGIAdapter1 = DXGIAdapterFromD3D12Device(pd3d12Device)) { -- cgit v1.2.3