mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
LibWeb/WebGL: Implement drawBuffers()
This commit is contained in:
parent
145bb0f849
commit
73479d3f94
Notes:
github-actions[bot]
2024-12-13 08:20:33 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 73479d3f94
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2878
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/gmta
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue