Skip to content

[HLSL] Add support to constant expression evaluator for 'IntegralToFloating' and other similar casts to VectorExprEvaluator #163437

@spall

Description

@spall

HLSL allows IntegeralToFloating and other similar casts to be applied to vectors. Support for the following casts should be added to VectorExprEvaluator::VisitCastExpr.

  • IntegralToFloating
  • FloatingToIntegral
  • IntegralCast
  • FloatingCast
  • FloatingToBoolean
  • IntegralToBoolean

https://godbolt.org/z/n6P9E3czq

Tests should be added showing these casts being successfully performed in 'constexpr' on vectors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Support

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions