Lines Matching defs:precision
37 version 1.30.10 is the first version of GLSL Language containing precision qualifiers
39 all precision qualifiers from the shader source , otherwise we will use a shader parser
49 //XXX: Until proved otherwise, glsl doesn't know/use those precision macros, so we omit then
192 // parse the source and blank out precision statements
194 // precision {qualifier} {type};
200 // precision to be empty.
205 PRECISION,
208 } statementState = PRECISION;
209 const char *precision = NULL;
249 case PRECISION:
250 if (tokenLen == 9 && !strncmp(t,"precision",9)) {
252 precision = t;
262 statementState = PRECISION;
267 for (char *r = (char *)precision; r<=c ; ++r) {
271 statementState = PRECISION; //search for the next precision line
293 //the precision lines which we need to add to the shader
296 "precision lowp sampler2D;\n"
297 "precision lowp samplerCube;\n"