• Home
  • Raw
  • Download

Lines Matching refs:programID

43 static void cleanup_program(GrGLGpu* gpu, GrGLuint programID,  in cleanup_program()  argument
45 GR_GL_CALL(gpu->glInterface(), DeleteProgram(programID)); in cleanup_program()
119 void GrGLProgramBuilder::computeCountsAndStrides(GrGLuint programID, in computeCountsAndStrides() argument
133 GL_CALL(BindAttribLocation(programID, i, a.name())); in computeCountsAndStrides()
159 void GrGLProgramBuilder::storeShaderInCache(const SkSL::Program::Inputs& inputs, GrGLuint programID, in storeShaderInCache() argument
170 GL_CALL(GetProgramiv(programID, GL_PROGRAM_BINARY_LENGTH, &length)); in storeShaderInCache()
180 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary.get())); in storeShaderInCache()
212 GrGLuint programID; in finalize() local
214 programID = precompiledProgram->fProgramID; in finalize()
216 GL_CALL_RET(programID, CreateProgram()); in finalize()
218 if (0 == programID) { in finalize()
226 GL_CALL(ProgramParameteri(programID, GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GR_GL_TRUE)); in finalize()
256 this->computeCountsAndStrides(programID, geomProc, false); in finalize()
280 ProgramBinary(programID, binaryFormat, in finalize()
284 cached = this->checkLinkStatus(programID, errorHandler, nullptr, nullptr); in finalize()
288 this->computeCountsAndStrides(programID, geomProc, false); in finalize()
339 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
346 if (!this->compileAndAttachShaders(glsl[kFragment_GrShaderType], programID, in finalize()
348 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
364 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
368 if (!this->compileAndAttachShaders(glsl[kVertex_GrShaderType], programID, in finalize()
370 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
375 this->computeCountsAndStrides(programID, geomProc, true); in finalize()
395 if (!this->compileAndAttachShaders(tessControlShader.c_str(), programID, in finalize()
398 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
407 if (!this->compileAndAttachShaders(tessEvaluationShader.c_str(), programID, in finalize()
410 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
415 this->bindProgramResourceLocations(programID); in finalize()
419 GL_CALL(LinkProgram(programID)); in finalize()
421 if (!this->checkLinkStatus(programID, errorHandler, sksl, glsl)) { in finalize()
422 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
428 this->resolveProgramResourceLocations(programID, usedProgramBinaries); in finalize()
448 this->storeShaderInCache(inputs, programID, glsl, isSkSL, &settings); in finalize()
450 return this->createProgram(programID); in finalize()
453 void GrGLProgramBuilder::bindProgramResourceLocations(GrGLuint programID) { in bindProgramResourceLocations() argument
454 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
458 GL_CALL(BindFragDataLocation(programID, 0, in bindProgramResourceLocations()
462 GL_CALL(BindFragDataLocationIndexed(programID, 0, 1, in bindProgramResourceLocations()
467 bool GrGLProgramBuilder::checkLinkStatus(GrGLuint programID, in checkLinkStatus() argument
471 GL_CALL(GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in checkLinkStatus()
483 GL_CALL(GetProgramiv(programID, GR_GL_INFO_LOG_LENGTH, &infoLen)); in checkLinkStatus()
489 GL_CALL(GetProgramInfoLog(programID, infoLen+1, &length, (char*)log.get())); in checkLinkStatus()
498 void GrGLProgramBuilder::resolveProgramResourceLocations(GrGLuint programID, bool force) { in resolveProgramResourceLocations() argument
499 fUniformHandler.getUniformLocations(programID, fGpu->glCaps(), force); in resolveProgramResourceLocations()
502 sk_sp<GrGLProgram> GrGLProgramBuilder::createProgram(GrGLuint programID) { in createProgram() argument
505 programID, in createProgram()
544 GrGLuint programID; in PrecompileProgram() local
545 GR_GL_CALL_RET(gl, programID, CreateProgram()); in PrecompileProgram()
546 if (0 == programID) { in PrecompileProgram()
559 if (GrGLuint shaderID = GrGLCompileAndAttachShader(glGpu->glContext(), programID, type, in PrecompileProgram()
575 cleanup_program(glGpu, programID, shadersToDelete); in PrecompileProgram()
580 GR_GL_CALL(glGpu->glInterface(), BindAttribLocation(programID, i, in PrecompileProgram()
587 BindFragDataLocation(programID, 0, in PrecompileProgram()
592 BindFragDataLocationIndexed(programID, 0, 1, in PrecompileProgram()
596 GR_GL_CALL(glGpu->glInterface(), LinkProgram(programID)); in PrecompileProgram()
598 GR_GL_CALL(glGpu->glInterface(), GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in PrecompileProgram()
600 cleanup_program(glGpu, programID, shadersToDelete); in PrecompileProgram()
606 precompiledProgram->fProgramID = programID; in PrecompileProgram()