diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-17 09:26:53 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-17 09:30:24 -0700 |
| commit | f881f52f6c34dbc2aa0a0701d6600467fae5a5ee (patch) | |
| tree | 9fc05221b73181c906e37a62b0fd0da3552660fe /source/slang/syntax.cpp | |
| parent | fdab35e93082d6da4f9dbb4b6ec7b4c6dbce831c (diff) | |
Add explicit operator overloads for scalar/matrix cases
Fixes #103
- Previously I was relying on scalar-to-vector promotion to pick the right type in these cases, but I hadn't implemented scalar-to-matrix promotion (I should...)
- Rather than relying on promotion behavior, this change goes ahead and adds explicit overloads. I think this is probably a better decision in the long term, since one might want to support these cases for operators, while warning (or erroring) on the more general cases of implicit conversion.
- This covers matrix/scalar, scalar/matrix, vector/scalar, and scalar/vector cases
Diffstat (limited to 'source/slang/syntax.cpp')
0 files changed, 0 insertions, 0 deletions
