/
redgpu
/
clspv
Обзор
Документация
Войти
/
redgpu
/
clspv
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/function_call.cl
17 строк
463 B
alan-baker
Simplify tests to incfrease robustness (#398)
05 июл 2019, 01:38
Не верифицирован
05 июл 2019, 01:38
02e711b
Код
Авторство
О чём код?
// We use -O0 here because the compiler is smart enough to realise calling // a function that does nothing can be removed. // RUN: clspv -O0 %s -o %t.spv // RUN: spirv-dis -o %t2.spvasm %t.spv // RUN: FileCheck %s < %t2.spvasm // RUN: spirv-val --target-env vulkan1.0 %t.spv // CHECK: %[[BAR_ID:[a-zA-Z0-9_]*]] = OpFunction void bar() { } void kernel __attribute__((reqd_work_group_size(1, 1, 1))) foo() { // CHECK: OpFunctionCall {{.*}} %[[BAR_ID]] bar(); }