| 106 | } |
| 107 | |
| 108 | std::shared_ptr<Program> ProgramBuilder::CreateProgram(Context* context, |
| 109 | const ProgramInfo* programInfo) { |
| 110 | GLSLProgramBuilder builder(context, programInfo); |
| 111 | if (!builder.emitAndInstallProcessors()) { |
| 112 | return nullptr; |
| 113 | } |
| 114 | auto program = builder.finalize(); |
| 115 | if (program == nullptr) { |
| 116 | return nullptr; |
| 117 | } |
| 118 | return Resource::AddToCache(context, program.release()); |
| 119 | } |
| 120 | |
| 121 | GLSLProgramBuilder::GLSLProgramBuilder(Context* context, const ProgramInfo* programInfo) |
| 122 | : ProgramBuilder(context, programInfo), _varyingHandler(this), _uniformHandler(this), |
nothing calls this directly
no test coverage detected