Combine(Values(SPV_ENV_UNIVERSAL_1_0, SPV_ENV_UNIVERSAL_1_1),
ValuesIn(std::vector<EnumCapabilityCase>{
CASE0(STORAGE_CLASS, StorageClassUniformConstant),
- CASE1(STORAGE_CLASS, StorageClassInput, Shader),
CASE1(STORAGE_CLASS, StorageClassUniform, Shader),
CASE1(STORAGE_CLASS, StorageClassOutput, Shader),
CASE0(STORAGE_CLASS, StorageClassWorkgroup),
CASE1(CAPABILITY, CapabilityInputAttachment, Shader),
CASE1(CAPABILITY, CapabilitySparseResidency, Shader),
CASE1(CAPABILITY, CapabilityMinLod, Shader),
- CASE1(CAPABILITY, CapabilitySampled1D, Shader),
CASE1(CAPABILITY, CapabilityImage1D, Sampled1D),
CASE1(CAPABILITY, CapabilitySampledCubeArray, Shader),
- CASE1(CAPABILITY, CapabilitySampledBuffer, Shader),
CASE1(CAPABILITY, CapabilityImageBuffer, SampledBuffer),
CASE1(CAPABILITY, CapabilityImageMSArray, Shader),
CASE1(CAPABILITY, CapabilityStorageImageExtendedFormats, Shader),
"InputAttachment",
"SparseResidency",
"MinLod",
- "Sampled1D",
- "Image1D",
"SampledCubeArray",
- "SampledBuffer",
"ImageMSArray",
- "ImageBuffer",
"StorageImageExtendedFormats",
"ImageQuery",
"DerivativeControl",
"InputAttachment",
"SparseResidency",
"MinLod",
- "Sampled1D",
- "Image1D",
"SampledCubeArray",
- "SampledBuffer",
"ImageMSArray",
- "ImageBuffer",
"StorageImageExtendedFormats",
"ImageQuery",
"DerivativeControl",
make_pair(string(kOpenCLMemoryModel) +
" %intt = OpTypeInt 32 0\n"
" %ptrt = OpTypePointer Input %intt"
- " %var = OpVariable %ptrt Input\n", ShaderDependencies()),
+ " %var = OpVariable %ptrt Input\n", AllCapabilities()),
make_pair(string(kOpenCLMemoryModel) +
" %intt = OpTypeInt 32 0\n"
" %ptrt = OpTypePointer Uniform %intt\n"
capability.size(), &dummy);
}
-
-
TEST_P(ValidateCapability, Capability) {
const string capability = Capability(GetParam());
spv_target_env env =