Lines Matching refs:glsl
94 bool GrGLProgramBuilder::compileAndAttachShaders(const SkSL::String& glsl, in compileAndAttachShaders() argument
103 glsl, in compileAndAttachShaders()
244 SkSL::String glsl[kGrShaderTypeCount]; in finalize() local
295 GrPersistentCacheUtils::UnpackCachedShaders(&reader, glsl, &inputs, 1); in finalize()
314 if (glsl[kFragment_GrShaderType].empty()) { in finalize()
323 &glsl[kFragment_GrShaderType], in finalize()
333 if (!this->compileAndAttachShaders(glsl[kFragment_GrShaderType], programID, in finalize()
342 if (glsl[kVertex_GrShaderType].empty()) { in finalize()
348 &glsl[kVertex_GrShaderType], in finalize()
355 if (!this->compileAndAttachShaders(glsl[kVertex_GrShaderType], programID, in finalize()
403 if (glsl[kGeometry_GrShaderType].empty()) { in finalize()
410 &glsl[kGeometry_GrShaderType], in finalize()
417 if (!this->compileAndAttachShaders(glsl[kGeometry_GrShaderType], programID, in finalize()
428 if (!this->checkLinkStatus(programID, errorHandler, sksl, glsl)) { in finalize()
456 glsl[i] = GrShaderUtils::PrettyPrint(*sksl[i]); in finalize()
460 this->storeShaderInCache(inputs, programID, glsl, isSkSL, &settings); in finalize()
493 SkSL::String* sksl[], const SkSL::String glsl[]) { in checkLinkStatus() argument
505 if (glsl) { in checkLinkStatus()
506 allShaders.appendf("// Vertex GLSL\n%s\n", glsl[kVertex_GrShaderType].c_str()); in checkLinkStatus()
507 if (!glsl[kGeometry_GrShaderType].empty()) { in checkLinkStatus()
508 allShaders.appendf("// Geometry GLSL\n%s\n", glsl[kGeometry_GrShaderType].c_str()); in checkLinkStatus()
510 allShaders.appendf("// Fragment GLSL\n%s\n", glsl[kFragment_GrShaderType].c_str()); in checkLinkStatus()
595 SkSL::String glsl; in PrecompileProgram() local
596 auto program = GrSkSLtoGLSL(gpu->glContext(), kind, sksl, settings, &glsl, errorHandler); in PrecompileProgram()
601 if (GrGLuint shaderID = GrGLCompileAndAttachShader(gpu->glContext(), programID, type, glsl, in PrecompileProgram()