Panagiotis Christopoulos Charitos 7 سال پیش
والد
کامیت
f5737bc52e
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/anki/renderer/DownscaleBlur.cpp
  2. 1 1
      src/anki/renderer/DownscaleBlur.h

+ 1 - 1
src/anki/renderer/DownscaleBlur.cpp

@@ -194,7 +194,7 @@ void DownscaleBlur::run(RenderPassWorkContext& rgraphCtx)
 		sampleSubresource.m_firstMipmap = passIdx;
 		rgraphCtx.bindImage(0, 0, m_runCtx.m_rt, sampleSubresource);
 
-		Vec4 fbSize(vpWidth, vpHeight, 0.0f, 0.0f);
+		UVec4 fbSize(vpWidth, vpHeight, 0, 0);
 		cmdb->setPushConstants(&fbSize, sizeof(fbSize));
 	}
 

+ 1 - 1
src/anki/renderer/DownscaleBlur.h

@@ -53,7 +53,7 @@ anki_internal:
 	}
 
 private:
-	static const Bool m_useCompute = false;
+	static const Bool m_useCompute = true;
 	Array<U32, 2> m_workgroupSize = {{8, 8}};
 
 	U8 m_passCount = 0; ///< It's also the mip count of the m_rtTex.