UNPKG

650 BTypeScriptView Raw
1import { PRECISION } from '@pixi/constants';
2/**
3 * Sets the float precision on the shader, ensuring the device supports the request precision.
4 * If the precision is already present, it just ensures that the device is able to handle it.
5 * @private
6 * @param {string} src - The shader source
7 * @param {PIXI.PRECISION} requestedPrecision - The request float precision of the shader.
8 * @param {PIXI.PRECISION} maxSupportedPrecision - The maximum precision the shader supports.
9 * @returns {string} modified shader source
10 */
11export declare function setPrecision(src: string, requestedPrecision: PRECISION, maxSupportedPrecision: PRECISION): string;