mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/WebGL: Implement drawBuffers()
This commit is contained in:
parent
145bb0f849
commit
73479d3f94
|
|
@ -368,7 +368,7 @@ interface mixin WebGL2RenderingContextBase {
|
|||
[FIXME] undefined drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLintptr offset);
|
||||
|
||||
// Multiple Render Targets
|
||||
[FIXME] undefined drawBuffers(sequence<GLenum> buffers);
|
||||
undefined drawBuffers(sequence<GLenum> buffers);
|
||||
|
||||
[FIXME] undefined clearBufferfv(GLenum buffer, GLint drawbuffer, Float32List values, optional unsigned long long srcOffset = 0);
|
||||
[FIXME] undefined clearBufferiv(GLenum buffer, GLint drawbuffer, Int32List values, optional unsigned long long srcOffset = 0);
|
||||
|
|
|
|||
|
|
@ -670,6 +670,13 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "drawBuffers"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
glDrawBuffers(buffers.size(), buffers.data());
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name.starts_with("uniformMatrix"sv)) {
|
||||
auto number_of_matrix_elements = function.name.substring_view(13, 1);
|
||||
function_impl_generator.set("number_of_matrix_elements", number_of_matrix_elements);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user