Skip to content

Commit d150fd6

Browse files
committed
Removed unused stuff
1 parent 1389f45 commit d150fd6

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,10 @@ static int evalCounter = 0;
2626
static std::wstring appDataPath = L".";
2727
static bool shutdown = false;
2828

29-
static void ResourceBarrier(ID3D12GraphicsCommandList* InCommandList, ID3D12Resource* InResource,
30-
D3D12_RESOURCE_STATES InBeforeState, D3D12_RESOURCE_STATES InAfterState)
31-
{
32-
D3D12_RESOURCE_BARRIER barrier = {};
33-
barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
34-
barrier.Transition.pResource = InResource;
35-
barrier.Transition.StateBefore = InBeforeState;
36-
barrier.Transition.StateAfter = InAfterState;
37-
barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES;
38-
InCommandList->ResourceBarrier(1, &barrier);
39-
}
40-
4129
#pragma region Hooks
4230

4331
typedef void (*PFN_SetComputeRootSignature)(ID3D12GraphicsCommandList* commandList,
4432
ID3D12RootSignature* pRootSignature);
45-
typedef void (*PFN_CreateSampler)(ID3D12Device* device, const D3D12_SAMPLER_DESC* pDesc,
46-
D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
4733

4834
static PFN_SetComputeRootSignature orgSetComputeRootSignature = nullptr;
4935
static PFN_SetComputeRootSignature orgSetGraphicRootSignature = nullptr;
@@ -52,18 +38,6 @@ static bool contextRendering = false;
5238
static std::shared_mutex computeSigatureMutex;
5339
static std::shared_mutex graphSigatureMutex;
5440

55-
static IID streamlineRiid {};
56-
57-
static int64_t GetTicks()
58-
{
59-
LARGE_INTEGER ticks;
60-
61-
if (!QueryPerformanceCounter(&ticks))
62-
return 0;
63-
64-
return ticks.QuadPart;
65-
}
66-
6741
static void hkSetComputeRootSignature(ID3D12GraphicsCommandList* commandList, ID3D12RootSignature* pRootSignature)
6842
{
6943
if (Config::Instance()->RestoreComputeSignature.value_or_default() && !contextRendering && commandList != nullptr &&

0 commit comments

Comments
 (0)