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 unscoped enum type has differences in behavior in HLSL from the C++ behavior that should be rectified. The primary difference is that it preserves the enum type for binary operator expression results rather than converting to int first and resulting in an int type for the expression.
Additionally, enum struct has unintended differences in behavior from enum class because, other than scoping, it's treated the same way as the unscoped enum type, allowing operations without casting that should require explicit casting.
The text was updated successfully, but these errors were encountered:
Actually it seems to be an accident that your HLSL with an enum class even compiles, you will start getting syntax errors as soon as you try to use the values.
The unscoped
enum
type has differences in behavior in HLSL from the C++ behavior that should be rectified. The primary difference is that it preserves the enum type for binary operator expression results rather than converting to int first and resulting in an int type for the expression.Additionally,
enum struct
has unintended differences in behavior fromenum class
because, other than scoping, it's treated the same way as the unscopedenum
type, allowing operations without casting that should require explicit casting.The text was updated successfully, but these errors were encountered: