mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb/WebGL: Implement texStorage2D()
This commit is contained in:
committed by
Alexander Kalenik
parent
cfff38a176
commit
897883f947
Notes:
github-actions[bot]
2024-12-13 08:20:08 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/897883f9470 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2878 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/gmta
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user