/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests_errors/old-launch-syntax.ispc
24 строки
589 B
Arina Neshlyaeva
Removed width() from tests_errors
03 ноя 2020, 05:27
03 ноя 2020, 05:27
c590da8
Код
Авторство
О чём код?
// "launch" expressions no longer take '<' '>' around function call expression. static uniform float array[10000]; task void x(float f) { uniform int j; uniform int i = taskIndex; array[i] = i / 10000.; cfor (j = 0; j < 10000; ++j) array[i] = sin(array[i]); if (array[i] < .02) array[i] = i; } export void f_f(uniform float RET[], uniform float fFOO[]) { float f = fFOO[programIndex]; launch[10000] < x(f) >; sync; RET[programIndex] = array[9999]; } export void result(uniform float RET[]) { RET[programIndex] = 9999.000000; }