Pete Brubaker
Pete Brubaker
When marking a for loop with #pragma unroll the loop will be unrolled but bounds checks will still occur between the unrolled segments. This causes ISPC to perform slightly slower...
Currently there is no comprehensive reference for the standard library. Many of the functions are listed in the user guide, but it would be nice to have an API level...
There are comments in this code snippet that should make the problems here obvious. After discussing with Dmitry this could be a problem with CSE (common subexpression elimination) and it...
The random number generators in the standard library are not fast. It would be good to have a couple more random number generators to choose from in the standard library....
https://godbolt.org/z/Go9v73v13 The compiler isn't correctly evaluating this expression and folding it down to: ``` col.a = a * 0.00392157f; ``` However it works if correctly if `1.f/255.f` is defined as...
We currently have `trunc()` so it's possible for users to implement it themselves, but it would be nice to have it in the stdlib. ``` float fmodf(float x, float y)...
![image](https://user-images.githubusercontent.com/6944373/178400282-58996dab-9c23-42fe-943d-261037b60d12.png)
![image](https://user-images.githubusercontent.com/6944373/178400015-52c4abd2-3cbc-42b0-bf08-ff3ea9e3c29f.png)
Often times when working with ISPC in games (editors or runtime) or content creation applications there is no console window, and stdout isn't redirected. In these cases print() output from...
``` void StoreEveryOther( uniform float dst[], const uniform uint32 baseIndex, const varying float src ) { //static const varying bool mask = { 1, 0, 1, 0, 1, 0, 1,...