/
redgpu
/
clspv
Обзор
Документация
Войти
/
redgpu
/
clspv
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/VariablePointers/function_call_image_param.cl
17 строк
519 B
alan-baker
Don't add variable pointers due to images and samplers (#447)
04 дек 2019, 01:17
04 дек 2019, 01:17
d4d5065
Код
Авторство
О чём код?
// RUN: clspv %s -o %t.spv -no-dra -no-inline-single // RUN: spirv-dis -o %t2.spvasm %t.spv // RUN: FileCheck %s < %t2.spvasm // RUN: spirv-val --target-env vulkan1.0 %t.spv void bar(write_only image2d_t image) { write_imagef(image, (int2)(0, 0), (float4)(0.0)); } kernel void foo(write_only image2d_t image) { bar(image); } // CHECK-NOT: OpCapability VariablePointers // CHECK-NOT: OpExtension "SPV_KHR_variable_pointers" // CHECK: [[image:%[a-zA-Z0-9_]+]] = OpTypeImage // CHECK: OpFunctionParameter [[image]]