You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the compiler gives the error Error: Compile time evaluation requires a compile time constant value.
the same happens when the variables are declared as global constants using const
$if($test2.x == $test.x) gives the same error but $if($test2[0] == $test[0]) works.
The text was updated successfully, but these errors were encountered:
Book-reader
changed the title
$if does not consider swizzled values from a vector a compile time constant$if does not consider vectors to be a compile time constant
Oct 26, 2024
Book-reader
changed the title
$if does not consider vectors to be a compile time constant
constant vectors not considered to be a compile time constant
Oct 26, 2024
in the following example:
the compiler gives the error
Error: Compile time evaluation requires a compile time constant value.
the same happens when the variables are declared as global constants using
const
$if($test2.x == $test.x)
gives the same error but$if($test2[0] == $test[0])
works.The text was updated successfully, but these errors were encountered: