ispc icon indicating copy to clipboard operation
ispc copied to clipboard

Request: auto keyword for basic type deduction

Open alex-mat opened this issue 2 years ago • 0 comments

Since ISPC has function overloading, automatic type deduction by function return type would be useful. It would be a simple way to allow for basic generic programming and could potentially simplify some codebases.

To keep things predictable, it could require writing the uniform/varying qualifier if required, for example:

uniform auto gatherIterator = GetIterator(variableOfSomeStructType);

alex-mat avatar May 05 '22 00:05 alex-mat