UNPKG

pixi.js

Version:

PixiJS — The HTML5 Creation Engine =============

23 lines (19 loc) 655 B
'use strict'; var getTestContext = require('./getTestContext.js'); "use strict"; let maxFragmentPrecision; function getMaxFragmentPrecision() { if (!maxFragmentPrecision) { maxFragmentPrecision = "mediump"; const gl = getTestContext.getTestContext(); if (gl) { if (gl.getShaderPrecisionFormat) { const shaderFragment = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT); maxFragmentPrecision = shaderFragment.precision ? "highp" : "mediump"; } } } return maxFragmentPrecision; } exports.getMaxFragmentPrecision = getMaxFragmentPrecision; //# sourceMappingURL=getMaxFragmentPrecision.js.map