From 96831b09703e660fca40e378735372a5b5e76a65 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Fri, 15 Dec 2023 13:29:05 +0100 Subject: [PATCH] GS/D3D: Fix X3206 CAS shader warning. Warning X3206: implicit truncation of vector type warning fix. --- bin/resources/shaders/dx11/cas.hlsl | 2 +- pcsx2/ShaderCacheVersion.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/resources/shaders/dx11/cas.hlsl b/bin/resources/shaders/dx11/cas.hlsl index c7ae32c892..47552122a9 100644 --- a/bin/resources/shaders/dx11/cas.hlsl +++ b/bin/resources/shaders/dx11/cas.hlsl @@ -56,7 +56,7 @@ void main(uint3 LocalThreadId : SV_GroupThreadID, uint3 WorkGroupId : SV_GroupID #endif // Filter. - AF3 c = (float4)0.0f; + AF3 c = (float3)0.0f; CasFilter(c.r, c.g, c.b, gxy, const0, const1, sharpenOnly); OutputTexture[ASU2(gxy)] = AF4(c, 1); diff --git a/pcsx2/ShaderCacheVersion.h b/pcsx2/ShaderCacheVersion.h index 36f62612ec..aa2a593b0e 100644 --- a/pcsx2/ShaderCacheVersion.h +++ b/pcsx2/ShaderCacheVersion.h @@ -15,4 +15,4 @@ /// Version number for GS and other shaders. Increment whenever any of the contents of the /// shaders change, to invalidate the cache. -static constexpr u32 SHADER_CACHE_VERSION = 36; +static constexpr u32 SHADER_CACHE_VERSION = 37;