mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-26 08:06:33 +00:00
Minor cleanup
This commit is contained in:
@@ -32,9 +32,6 @@ bool HudCopy_Dx12::Dispatch(ID3D12GraphicsCommandList* cmdList, ID3D12Resource*
|
||||
_counter = _counter % HudCopy_NUM_OF_HEAPS;
|
||||
FrameDescriptorHeap& currentHeap = _frameHeaps[_counter];
|
||||
|
||||
auto hudlessDesc = hudless->GetDesc();
|
||||
auto presentDesc = present->GetDesc();
|
||||
|
||||
if (_buffer == nullptr)
|
||||
{
|
||||
LOG_DEBUG("[{0}] Start!", _name);
|
||||
@@ -83,6 +80,7 @@ bool HudCopy_Dx12::Dispatch(ID3D12GraphicsCommandList* cmdList, ID3D12Resource*
|
||||
|
||||
cmdList->SetComputeRootDescriptorTable(0, currentHeap.GetTableGPUStart());
|
||||
|
||||
auto presentDesc = present->GetDesc();
|
||||
UINT dispatchWidth = static_cast<UINT>((presentDesc.Width + InNumThreadsX - 1) / InNumThreadsX);
|
||||
UINT dispatchHeight = (presentDesc.Height + InNumThreadsY - 1) / InNumThreadsY;
|
||||
|
||||
|
||||
@@ -177,11 +177,6 @@ bool HC_Dx12::Dispatch(IDXGISwapChain3* sc, ID3D12GraphicsCommandList* cmdList,
|
||||
_counter++;
|
||||
_counter = _counter % HC_NUM_OF_HEAPS;
|
||||
|
||||
// Check existing buffer
|
||||
D3D12_RESOURCE_DESC bufferDesc {};
|
||||
if (_buffer[_counter] != nullptr)
|
||||
bufferDesc = _buffer[_counter]->GetDesc();
|
||||
|
||||
if (!CreateBufferResource(_counter, _device, scBuffer, D3D12_RESOURCE_STATE_COPY_DEST))
|
||||
{
|
||||
LOG_ERROR("CreateBufferResource error!");
|
||||
|
||||
@@ -195,11 +195,6 @@ bool RUI_Dx12::Dispatch(IDXGISwapChain3* sc, ID3D12GraphicsCommandList* cmdList,
|
||||
_counter++;
|
||||
_counter = _counter % HC_NUM_OF_HEAPS;
|
||||
|
||||
// Check existing buffer
|
||||
D3D12_RESOURCE_DESC bufferDesc {};
|
||||
if (_buffer[_counter] != nullptr)
|
||||
bufferDesc = _buffer[_counter]->GetDesc();
|
||||
|
||||
if (!CreateBufferResource(_counter, _device, scBuffer, D3D12_RESOURCE_STATE_COPY_DEST))
|
||||
{
|
||||
LOG_ERROR("CreateBufferResource error!");
|
||||
|
||||
@@ -20,11 +20,10 @@ bool RF_Dx12::Dispatch(ID3D12GraphicsCommandList* InCmdList, ID3D12Resource* InR
|
||||
_counter = _counter % RF_NUM_OF_HEAPS;
|
||||
FrameDescriptorHeap& currentHeap = _frameHeaps[_counter];
|
||||
|
||||
auto inDesc = InResource->GetDesc();
|
||||
|
||||
CreateShaderResourceView(_device, InResource, currentHeap.GetSrvCPU(0), false);
|
||||
CreateUnorderedAccessView(_device, OutResource, currentHeap.GetUavCPU(0), 0);
|
||||
|
||||
auto inDesc = InResource->GetDesc();
|
||||
RFConstants constants {};
|
||||
|
||||
constants.height = height - 1;
|
||||
|
||||
Reference in New Issue
Block a user