Support binding vector3 (flutter/engine#35583)
This commit is contained in:
@@ -234,6 +234,13 @@ bool BufferBindingsGLES::BindUniformBuffer(const ProcTableGLES& gl,
|
||||
buffer_ptr + member.offset) // data
|
||||
);
|
||||
continue;
|
||||
case sizeof(Vector3):
|
||||
gl.Uniform3fv(location->second, // location
|
||||
1u, // count
|
||||
reinterpret_cast<const GLfloat*>(
|
||||
buffer_ptr + member.offset) // data
|
||||
);
|
||||
continue;
|
||||
case sizeof(Vector2):
|
||||
gl.Uniform2fv(location->second, // location
|
||||
1u, // count
|
||||
|
||||
@@ -157,6 +157,7 @@ struct GLProc {
|
||||
PROC(Uniform1fv); \
|
||||
PROC(Uniform1i); \
|
||||
PROC(Uniform2fv); \
|
||||
PROC(Uniform3fv); \
|
||||
PROC(Uniform4fv); \
|
||||
PROC(UniformMatrix4fv); \
|
||||
PROC(UseProgram); \
|
||||
|
||||
Reference in New Issue
Block a user