You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the 13 or 14 .exe files, they give the error "Raytracing is not supported on this device. Make sure your GPU supports DXR (such as Nvidia's Volta or Turing RTX) and you're on the latest drivers. The DXR fallback layer is not supported."
I noticed that changing the following piece of code, bringing it back to that in the previous tutorials (from 02 to 12), the issue is solved: Not working code:
ID3D12Device5Ptr createDevice(IDXGIFactory4Ptr pDxgiFactory)
{
// Find the HW adapter
IDXGIAdapter1Ptr pAdapter;
for (uint32_t i = 0; DXGI_ERROR_NOT_FOUND != pDxgiFactory->EnumAdapters1(i, &pAdapter); i++)
{
DXGI_ADAPTER_DESC1 desc;
pAdapter->GetDesc1(&desc);
// Skip SW adapters
if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) continue;
#ifdef _DEBUG
ID3D12DebugPtr pDx12Debug;
if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&pDx12Debug))))
{
pDx12Debug->EnableDebugLayer();
}
#endif
// Create the device
ID3D12Device5Ptr pDevice;
d3d_call(D3D12CreateDevice(pAdapter, D3D_FEATURE_LEVEL_12_0, IID_PPV_ARGS(&pDevice)));
D3D12_FEATURE_DATA_D3D12_OPTIONS5 features5;
HRESULT hr = pDevice->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS5, &features5, sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5));
if (FAILED(hr) || features5.RaytracingTier == D3D12_RAYTRACING_TIER_NOT_SUPPORTED)
{
msgBox("Raytracing is not supported on this device. Make sure your GPU supports DXR (such as Nvidia's Volta or Turing RTX) and you're on the latest drivers. The DXR fallback layer is not supported.");
exit(1);
return nullptr;
}
return pDevice;
}
}
WORKING CODE:
ID3D12Device5Ptr createDevice(IDXGIFactory4Ptr pDxgiFactory)
{
// Find the HW adapter
IDXGIAdapter1Ptr pAdapter;
for (uint32_t i = 0; DXGI_ERROR_NOT_FOUND != pDxgiFactory->EnumAdapters1(i, &pAdapter); i++)
{
DXGI_ADAPTER_DESC1 desc;
pAdapter->GetDesc1(&desc);
// Skip SW adapters
if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) continue;
#ifdef _DEBUG
ID3D12DebugPtr pDx12Debug;
if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&pDx12Debug))))
{
pDx12Debug->EnableDebugLayer();
}
#endif
// Create the device
ID3D12Device5Ptr pDevice;
d3d_call(D3D12CreateDevice(pAdapter, D3D_FEATURE_LEVEL_12_0, IID_PPV_ARGS(&pDevice)));
D3D12_FEATURE_DATA_D3D12_OPTIONS5 features5;
HRESULT hr = pDevice->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS5, &features5, sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5));
if (SUCCEEDED(hr) && features5.RaytracingTier != D3D12_RAYTRACING_TIER_NOT_SUPPORTED)
{
return pDevice;
}
}
msgBox("Raytracing is not supported on this device. Make sure your GPU supports DXR (such as Nvidia's Volta or Turing RTX) and you're on the latest drivers. The DXR fallback layer is not supported.");
exit(1);
return nullptr;
}
The text was updated successfully, but these errors were encountered:
Running the 13 or 14 .exe files, they give the error "Raytracing is not supported on this device. Make sure your GPU supports DXR (such as Nvidia's Volta or Turing RTX) and you're on the latest drivers. The DXR fallback layer is not supported."
I noticed that changing the following piece of code, bringing it back to that in the previous tutorials (from 02 to 12), the issue is solved:
Not working code:
WORKING CODE:
The text was updated successfully, but these errors were encountered: