summaryrefslogtreecommitdiffstats
path: root/source/slang/reflection.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-17 09:26:53 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-17 09:30:24 -0700
commitf881f52f6c34dbc2aa0a0701d6600467fae5a5ee (patch)
tree9fc05221b73181c906e37a62b0fd0da3552660fe /source/slang/reflection.cpp
parentfdab35e93082d6da4f9dbb4b6ec7b4c6dbce831c (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/reflection.cpp')
0 files changed, 0 insertions, 0 deletions