/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/func-tests/shift-8.ispc
12 строк
358 B
Arina Neshlyaeva
Added unsigned versions for shifts/shuffles
19 фев 2025, 01:10
19 фев 2025, 01:10
83f8faa
Код
Авторство
О чём код?
#include "test_static.isph" task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) { uint64 a = aFOO[programIndex]; uint64 rot = shift(a, 1); RET[programIndex] = rot; } task void result(uniform float RET[]) { varying int val = 2 + programIndex; if (val > programCount) val = 0; RET[programIndex] = val; }