/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/func-tests/launch-3.ispc
17 строк
399 B
Aleksei Nurmukhametov
Create tests/func-tests
20 сен 2024, 23:22
20 сен 2024, 23:22
e5c09ed
Код
Авторство
О чём код?
#include "test_static.isph" // rule: skip on arch=xe64 static float array[6]; task void x(uniform int i, float f) { array[i] = f; } task void f_fu(uniform float RET[], uniform float fFOO[], uniform float fu) { float f = fFOO[programIndex]; launch x(fu, f); sync; RET[programIndex] = array[5]; } task void result(uniform float RET[]) { RET[programIndex] = 1+programIndex; }