On Mon Aug 14 18:04:34 2023 +0000, Petrichor Park wrote:
Strings count as scalars. https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hls...
MSDN documentation notwithstanding, they don't fall into the same category as everything else there (i.e., they're not a numeric type, and can't form vectors and matrices). Arguably we should rename HLSL_TYPE_LAST_SCALAR to HLSL_TYPE_LAST_NUMERIC, but then what we really should be doing is to split this enumeration into two separate enumerations. That's been on the list for a while, though, so for now I'd just leave the enumeration as-is.