Reporting Issues for Documentation

The documentation for Shader Parameter Structs in Unreal 5.1.0 contains compile errors:

According to the docs, shader parameters can be defined through a variety of types, but FVector types (FVector, FVector2D, FVector3D and FVector4) cause a static assert to fail with the following message:

static_assert failed: 'Invalid type FVector2D of member ViewportSize.' Expression 0 != 0 evaluates to false

Building a project with such a shader parameter struct is therefore not possible.


UE version: 5.1.0

OS: Ubuntu 20.04

3 Likes