18 constexpr
unsigned defaultAddressSpace = 0;
25 storageClassToOCLAddressSpace(spirv::StorageClass storageClass) {
29 switch (storageClass) {
30 case spirv::StorageClass::Function:
32 case spirv::StorageClass::Input:
33 case spirv::StorageClass::CrossWorkgroup:
35 case spirv::StorageClass::UniformConstant:
37 case spirv::StorageClass::Workgroup:
39 case spirv::StorageClass::Generic:
41 case spirv::StorageClass::DeviceOnlyINTEL:
43 case spirv::StorageClass::HostOnlyINTEL:
46 return defaultAddressSpace;
52 spirv::StorageClass storageClass) {
55 return storageClassToOCLAddressSpace(storageClass);
57 return defaultAddressSpace;
Include the generated interface declarations.
unsigned storageClassToAddressSpace(spirv::ClientAPI clientAPI, spirv::StorageClass storageClass)