MCPcopy Create free account
hub / github.com/microsoft/SandDance / hasFeatures

Function hasFeatures

docs/app/js/sanddance-app.js:64099–64106  ·  view source on GitHub ↗
(gl, features)

Source from the content-addressed store, hash-verified

64097 return hasFeatures(gl, feature);
64098}
64099function hasFeatures(gl, features) {
64100 features = Array.isArray(features) ? features : [
64101 features
64102 ];
64103 return features.every(function(feature) {
64104 return isFeatureSupported(gl, feature);
64105 });
64106}
64107function getFeatures(gl) {
64108 gl.luma = gl.luma || {};
64109 gl.luma.caps = gl.luma.caps || {};

Callers 1

hasFeatureFunction · 0.70

Calls 2

isFeatureSupportedFunction · 0.70
getFeatureFunction · 0.70

Tested by

no test coverage detected