Sets up stage bindings for single draw call in the OpenGLES backend. More...
#include <buffer_bindings_gles.h>
Public Member Functions | |
BufferBindingsGLES () | |
~BufferBindingsGLES () | |
bool | RegisterVertexStageInput (const ProcTableGLES &gl, const std::vector< ShaderStageIOSlot > &inputs, const std::vector< ShaderStageBufferLayout > &layouts) |
bool | ReadUniformsBindings (const ProcTableGLES &gl, GLuint program) |
bool | BindVertexAttributes (const ProcTableGLES &gl, size_t binding, size_t vertex_offset) |
bool | BindUniformData (const ProcTableGLES &gl, const std::vector< TextureAndSampler > &bound_textures, const std::vector< BufferResource > &bound_buffers, Range texture_range, Range buffer_range) |
bool | UnbindVertexAttributes (const ProcTableGLES &gl) |
Sets up stage bindings for single draw call in the OpenGLES backend.
Definition at line 28 of file buffer_bindings_gles.h.
|
default |
|
default |
bool impeller::BufferBindingsGLES::BindUniformData | ( | const ProcTableGLES & | gl, |
const std::vector< TextureAndSampler > & | bound_textures, | ||
const std::vector< BufferResource > & | bound_buffers, | ||
Range | texture_range, | ||
Range | buffer_range | ||
) |
Definition at line 222 of file buffer_bindings_gles.cc.
References impeller::kFragment, impeller::kVertex, impeller::Range::length, and impeller::Range::offset.
Referenced by impeller::EncodeCommandsInReactor(), and impeller::testing::TEST().
bool impeller::BufferBindingsGLES::BindVertexAttributes | ( | const ProcTableGLES & | gl, |
size_t | binding, | ||
size_t | vertex_offset | ||
) |
Definition at line 194 of file buffer_bindings_gles.cc.
References impeller::ProcTableGLES::GetCapabilities().
Referenced by impeller::BindVertexBuffer().
bool impeller::BufferBindingsGLES::ReadUniformsBindings | ( | const ProcTableGLES & | gl, |
GLuint | program | ||
) |
Definition at line 101 of file buffer_bindings_gles.cc.
References impeller::ProcTableGLES::GetDescription(), impeller::DescriptionGLES::GetGlVersion(), and impeller::Version::IsAtLeast().
bool impeller::BufferBindingsGLES::RegisterVertexStageInput | ( | const ProcTableGLES & | gl, |
const std::vector< ShaderStageIOSlot > & | inputs, | ||
const std::vector< ShaderStageBufferLayout > & | layouts | ||
) |
Definition at line 31 of file buffer_bindings_gles.cc.
References impeller::ToVertexAttribType(), and type.
bool impeller::BufferBindingsGLES::UnbindVertexAttributes | ( | const ProcTableGLES & | gl | ) |
Definition at line 247 of file buffer_bindings_gles.cc.
References impeller::ProcTableGLES::GetCapabilities().
Referenced by impeller::EncodeCommandsInReactor().