From ab2b04d405fb5e9485330dcb872091ac15719c22 Mon Sep 17 00:00:00 2001 From: ohmaya Date: Sat, 15 Jun 2024 16:11:43 +0800 Subject: [PATCH] Removing the extra parameter from CreateDSRDevice calls --- DirectSR/DirectSR.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DirectSR/DirectSR.md b/DirectSR/DirectSR.md index 21e9920..59a8120 100644 --- a/DirectSR/DirectSR.md +++ b/DirectSR/DirectSR.md @@ -967,7 +967,7 @@ Applications create an `ID3D12DSRDeviceFactory` using `D3D12GetInterface`: CComPtr pDSRDeviceFactory; CComPtr pDSRDevice; ThrowFailure(D3D12GetInterface(CLSID_D3D12DSRDeviceFactory, IID_PPV_ARGS(&pDSRDeviceFactory))); -ThrowFailure(pDSRDeviceFactory->CreateDSRDevice(pD3D12Device, 1, IID_PPV_ARGS(&pDSRDevice))); +ThrowFailure(pDSRDeviceFactory->CreateDSRDevice(pD3D12Device, IID_PPV_ARGS(&pDSRDevice))); ``` The purpose of using the D3D12 runtime for `ID3D12DSRDeviceFactory` creation is to support DirectSR as an Agility SDK redistributable component. `D3D12GetInterface` loads `directsr.dll` from the same location as `d3d12core.dll`. @@ -994,7 +994,7 @@ HRESULT ID3D12DSRDeviceFactory::CreateDSRDevice( THROW_HRESULT_FAILURE(D3D12GetInterface(CLSID_D3D12DSRDeviceFactory, IID_PPV_ARGS(&pDSRDeviceFactory))); ATL::CComPtr pDSRDevice; - THROW_HRESULT_FAILURE(pDSRDeviceFactory->CreateDSRDevice(pD3D12Device, 1, IID_PPV_ARGS(&pDSRDevice))); + THROW_HRESULT_FAILURE(pDSRDeviceFactory->CreateDSRDevice(pD3D12Device, IID_PPV_ARGS(&pDSRDevice))); ``` ### Enumerating super resolution variants