/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/func_template_array_9.ispc
14 строк
450 B
Arina Neshlyaeva
Lit tests for templated arrays
27 сен 2024, 01:27
27 сен 2024, 01:27
ac9b94a
Код
Авторство
О чём код?
// Check that custom variable can't be used as template argument (yet). // RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s // CHECK: Only integral, enum types and non-type template parameters are allowed as template arguments. template <int C> noinline void func(float arr[C]) { uniform float O[C] = {0}; arr[programIndex] = O[programIndex]; } void test(float x[]) { uniform int N = 32; func<N>(x); }