mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
CodeGenerators: Delete unnecessary overrides in WebGL generator
getAttribLocation() and getAttribLocation() could be generated automatically so we don't need to have overriden function bodies for them.
This commit is contained in:
parent
f074df171b
commit
46b95182a0
Notes:
github-actions[bot]
2024-12-07 00:36:53 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 46b95182a0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2818
1 changed files with 0 additions and 16 deletions
|
@ -520,14 +520,6 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "getAttribLocation"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto name_str = null_terminated_string(name);
|
||||
return glGetAttribLocation(program->handle(), name_str.data());
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "vertexAttribPointer"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
glVertexAttribPointer(index, size, type, normalized, stride, reinterpret_cast<void*>(offset));
|
||||
|
@ -629,14 +621,6 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "getUniformLocation"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto name_str = null_terminated_string(name);
|
||||
return WebGLUniformLocation::create(m_realm, glGetUniformLocation(program->handle(), name_str.data()));
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "drawElements"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
glDrawElements(mode, count, type, reinterpret_cast<void*>(offset));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue