/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests/test-125.ispc
16 строк
368 B
Dmitry Babokin
Remove debug prints under ISPC_TARGET_GENX from tests, they were not working anyway
31 авг 2021, 02:47
31 авг 2021, 02:47
ec21285
Код
Авторство
О чём код?
#include "../test_static.isph" task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) { float a = aFOO[programIndex]; if (a < 3) { if (all(a < 256)) { RET[programIndex] = 1; } } else RET[programIndex] = 0; } task void result(uniform float RET[]) { RET[programIndex] = 0; RET[0] = RET[1] = 1; }