@@ -26,24 +26,10 @@ static int evalCounter = 0;
26
26
static std::wstring appDataPath = L" ." ;
27
27
static bool shutdown = false ;
28
28
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
-
41
29
#pragma region Hooks
42
30
43
31
typedef void (*PFN_SetComputeRootSignature)(ID3D12GraphicsCommandList* commandList,
44
32
ID3D12RootSignature* pRootSignature);
45
- typedef void (*PFN_CreateSampler)(ID3D12Device* device, const D3D12_SAMPLER_DESC* pDesc,
46
- D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
47
33
48
34
static PFN_SetComputeRootSignature orgSetComputeRootSignature = nullptr ;
49
35
static PFN_SetComputeRootSignature orgSetGraphicRootSignature = nullptr ;
@@ -52,18 +38,6 @@ static bool contextRendering = false;
52
38
static std::shared_mutex computeSigatureMutex;
53
39
static std::shared_mutex graphSigatureMutex;
54
40
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
-
67
41
static void hkSetComputeRootSignature (ID3D12GraphicsCommandList* commandList, ID3D12RootSignature* pRootSignature)
68
42
{
69
43
if (Config::Instance ()->RestoreComputeSignature .value_or_default () && !contextRendering && commandList != nullptr &&
0 commit comments