mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibWeb/WebGL: Implement texStorage2D()
This commit is contained in:
parent
cfff38a176
commit
897883f947
Notes:
github-actions[bot]
2024-12-13 08:20:08 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 897883f947
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
|
@ -306,7 +306,7 @@ interface mixin WebGL2RenderingContextBase {
|
|||
[FIXME] undefined renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
|
||||
// Texture objects
|
||||
[FIXME] undefined texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
undefined texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
[FIXME] undefined texStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
|
||||
|
||||
[FIXME] undefined texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLintptr pboOffset);
|
||||
|
|
|
@ -527,6 +527,13 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "texStorage2D") {
|
||||
function_impl_generator.append(R"~~~(
|
||||
glTexStorage2D(target, levels, internalformat, width, height);
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "texImage2D"sv && function.overload_index == 0) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
void const* pixels_ptr = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue