/
redgpu
/
clspv
Обзор
Документация
Войти
/
redgpu
/
clspv
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/VariablePointers/sampler.cl
21 строка
577 B
alan-baker
Fix VariablePointer capability generation (#535)
23 мар 2020, 18:05
Не верифицирован
23 мар 2020, 18:05
5ed8754
Код
Авторство
О чём код?
// RUN: clspv %s -o %t.spv // RUN: spirv-dis %t.spv -o %t.spvasm // RUN: FileCheck %s < %t.spvasm // RUN: spirv-val --target-env vulkan1.0 %t.spv // CHECK-NOT: OpCapability VariablePointers // CHECK-NOT: OpExtension "SPV_KHR_variable_pointers" const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | \ CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST; kernel void foo(read_only image2d_t im1, read_only image2d_t im2) { for (int l = 0; l < 30; ++l) { float4 s = read_imagef(im1, sampler, (int2)(0,0)); } float4 w = read_imagef(im2, sampler, (int2)(0, 0)); }