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

Function identifyGPUVendor

docs/app/js/sanddance-app.js:68504–68509  ·  view source on GitHub ↗
(vendor, renderer)

Source from the content-addressed store, hash-verified

68502 return gpuInfo;
68503}
68504function identifyGPUVendor(vendor, renderer) {
68505 if (vendor.match(/NVIDIA/i) || renderer.match(/NVIDIA/i)) return "NVIDIA";
68506 if (vendor.match(/INTEL/i) || renderer.match(/INTEL/i)) return "INTEL";
68507 if (vendor.match(/AMD/i) || renderer.match(/AMD/i) || vendor.match(/ATI/i) || renderer.match(/ATI/i)) return "AMD";
68508 return "UNKNOWN GPU";
68509}
68510var compiledGlslExtensions = {};
68511function canCompileGLGSExtension(gl, cap) {
68512 var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

Callers 1

getContextInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected