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

Function hasFeatures

docs/tests/v2/es6/js/sanddance.js:10081–10086  ·  view source on GitHub ↗
(gl, features)

Source from the content-addressed store, hash-verified

10079}
10080
10081function hasFeatures(gl, features) {
10082 features = Array.isArray(features) ? features : [features];
10083 return features.every(function (feature) {
10084 return getFeature(gl, feature);
10085 });
10086}
10087
10088function getFeatures(gl) {
10089 gl.luma = gl.luma || {};

Callers 1

hasFeatureFunction · 0.70

Calls 1

getFeatureFunction · 0.70

Tested by

no test coverage detected