setPrecision

private setPrecision(src: string, requestedPrecision: PIXI.PRECISION, maxSupportedPrecision: PIXI.PRECISION) → {string}

Sets the float precision on the shader, ensuring the device supports the request precision. If the precision is already present, it just ensures that the device is able to handle it.

Parameters:
Name Type Description
src string

The shader source

requestedPrecision PIXI.PRECISION

The request float precision of the shader.

maxSupportedPrecision PIXI.PRECISION

The maximum precision the shader supports.

Returns:
Type Description
string

modified shader source

Powered by webdoc!