diff --git a/OptiScaler/shaders/rcas/RCAS_Dx12.cpp b/OptiScaler/shaders/rcas/RCAS_Dx12.cpp index e5c9fe94..e201d0a9 100644 --- a/OptiScaler/shaders/rcas/RCAS_Dx12.cpp +++ b/OptiScaler/shaders/rcas/RCAS_Dx12.cpp @@ -287,7 +287,7 @@ bool RCAS_Dx12::Dispatch(ID3D12Device* InDevice, ID3D12GraphicsCommandList* InCm UINT dispatchWidth = 0; UINT dispatchHeight = 0; - dispatchWidth = (inDesc.Width + InNumThreadsX - 1) / InNumThreadsX; + dispatchWidth = static_cast((inDesc.Width + InNumThreadsX - 1) / InNumThreadsX); dispatchHeight = (inDesc.Height + InNumThreadsY - 1) / InNumThreadsY; InCmdList->Dispatch(dispatchWidth, dispatchHeight, 1); @@ -576,4 +576,4 @@ RCAS_Dx12::~RCAS_Dx12() _constantBuffer->Release(); _constantBuffer = nullptr; } -} \ No newline at end of file +}