Lines Matching defs:feature
84 // Returns true if the given feature is supported by the device.
85 // Throws an internal error If the feature is not recognized at all.
86 static bool isFeatureSupported(const vkt::Context& ctx, const std::string& feature)
88 if (feature == "Storage16BitFeatures.storageBuffer16BitAccess")
90 if (feature == "Float16Int8Features.shaderFloat16")
92 if (feature == "Float16Int8Features.shaderInt8")
94 if (feature == "Features.shaderFloat64")
96 if (feature == "Features.shaderInt16")
98 if (feature == "Features.shaderInt64")
100 if (feature == "Features.depthClamp")
102 if (feature == "Features.tessellationShader")
104 if (feature == "Features.shaderTessellationAndGeometryPointSize")
106 if (feature == "Features.geometryShader")
108 if (feature == "Features.fragmentStoresAndAtomics")
110 if (feature == "Features.vertexPipelineStoresAndAtomics")
112 if (feature == "Features.fillModeNonSolid")
114 if (feature == "Features.shaderStorageImageMultisample")
116 if (feature == "Features.sampleRateShading")
118 if (feature == "VariablePointerFeatures.variablePointersStorageBuffer")
120 if (feature == "VariablePointerFeatures.variablePointers")
122 if (feature == "SubgroupSupportedStages.fragment")
124 if (feature == "SubgroupSupportedOperations.vote")
126 if (feature == "SubgroupSupportedOperations.basic")
128 if (feature == "SubgroupSupportedOperations.ballot")
130 if (feature == "Storage16BitFeatures.storageBuffer16BitAccess")
132 if (feature == "Storage8BitFeatures.storageBuffer8BitAccess")
135 std::string message = std::string("Unexpected feature name: ") + feature;
179 // some feature checks are only valid when corresponding extensions are enabled.
187 const std::string feature = *iter;
188 if (!isFeatureSupported(ctx, feature))
190 missing += " " + feature;
211 TCU_THROW(NotSupportedError, "Buffer format doesn't support required feature flags");