Shader/AstOptimizer: Fix Vector4 cast propagation optimization

This commit is contained in:
Jérôme Leclercq 2021-12-28 11:49:41 +01:00
parent 47e2ec35e3
commit 4e5def1095
1 changed files with 1 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ namespace Nz::ShaderAst
{
std::unique_ptr<ConstantValueExpression> optimized;
using CCType = CastConstantPropagation<Vector3<TargetType>, TargetType, TargetType, TargetType, TargetType>;
using CCType = CastConstantPropagation<Vector4<TargetType>, TargetType, TargetType, TargetType, TargetType>;
if constexpr (is_complete_v<CCType>)
{