#include <pipeline_gles.h>
Definition at line 22 of file pipeline_gles.h.
◆ ~PipelineGLES()
| impeller::PipelineGLES::~PipelineGLES |
( |
| ) |
|
|
overridedefault |
◆ BindProgram()
| bool impeller::PipelineGLES::BindProgram |
( |
| ) |
const |
Definition at line 62 of file pipeline_gles.cc.
62 {
63 if (!handle_->IsValid()) {
64 return false;
65 }
66 auto handle = reactor_->GetGLHandle(handle_->Get());
67 if (!handle.has_value()) {
68 return false;
69 }
70 reactor_->GetProcTable().UseProgram(handle.value());
71 return true;
72}
References handle_.
◆ BuildVertexDescriptor()
| bool impeller::PipelineGLES::BuildVertexDescriptor |
( |
const ProcTableGLES & |
gl, |
|
|
GLuint |
program |
|
) |
| |
Definition at line 42 of file pipeline_gles.cc.
43 {
44 if (buffer_bindings_) {
45 return false;
46 }
47 auto vtx_desc = std::make_unique<BufferBindingsGLES>();
48 if (!vtx_desc->RegisterVertexStageInput(
51 return false;
52 }
53 if (!vtx_desc->ReadUniformsBindings(gl, program)) {
54 return false;
55 }
56
57 y_flip_uniform_location_ = gl.GetUniformLocation(program, "_impeller_y_flip");
58 buffer_bindings_ = std::move(vtx_desc);
59 return true;
60}
const PipelineDescriptor & GetDescriptor() const
Get the descriptor that was responsible for creating this pipeline. It may be copied and modified to ...
◆ GetBufferBindings()
Definition at line 38 of file pipeline_gles.cc.
38 {
39 return buffer_bindings_.get();
40}
◆ GetProgramHandle()
| const HandleGLES & impeller::PipelineGLES::GetProgramHandle |
( |
| ) |
const |
◆ GetSharedHandle()
| const std::shared_ptr< UniqueHandleGLES > impeller::PipelineGLES::GetSharedHandle |
( |
| ) |
const |
◆ GetYFlipUniformLocation()
| GLint impeller::PipelineGLES::GetYFlipUniformLocation |
( |
| ) |
const |
|
inline |
Definition at line 44 of file pipeline_gles.h.
44{ return y_flip_uniform_location_; }
◆ UnbindProgram()
| bool impeller::PipelineGLES::UnbindProgram |
( |
| ) |
const |
Definition at line 74 of file pipeline_gles.cc.
74 {
75 if (reactor_) {
76 reactor_->GetProcTable().UseProgram(0u);
77 }
78 return true;
79}
◆ testing::RenderPassGLESCommandTest
The documentation for this class was generated from the following files: