From 3d877e2e0941332ae47dfcb0fccbda56c8c660bd Mon Sep 17 00:00:00 2001 From: cdozdil Date: Tue, 21 Oct 2025 18:00:20 +0300 Subject: [PATCH] One more missed conversion --- OptiScaler/shaders/rcas/RCAS_Dx12.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}