UNPKG

pixi.js

Version:

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

21 lines (18 loc) 605 B
import { getTestContext } from './getTestContext.mjs'; "use strict"; let maxFragmentPrecision; function getMaxFragmentPrecision() { if (!maxFragmentPrecision) { maxFragmentPrecision = "mediump"; const gl = getTestContext(); if (gl) { if (gl.getShaderPrecisionFormat) { const shaderFragment = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT); maxFragmentPrecision = shaderFragment.precision ? "highp" : "mediump"; } } } return maxFragmentPrecision; } export { getMaxFragmentPrecision }; //# sourceMappingURL=getMaxFragmentPrecision.mjs.map