mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb/WebGL2: Implement fenceSync
This commit is contained in:
parent
bc9ae79a47
commit
135ceb387e
Notes:
github-actions[bot]
2024-12-14 08:10:14 +00:00
Author: https://github.com/Lubrsi
Commit: 135ceb387e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2905
7 changed files with 26 additions and 6 deletions
|
@ -357,6 +357,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
#include <LibWeb/WebGL/@class_name@.h>
|
||||
#include <LibWeb/WebGL/WebGLSampler.h>
|
||||
#include <LibWeb/WebGL/WebGLShader.h>
|
||||
#include <LibWeb/WebGL/WebGLSync.h>
|
||||
#include <LibWeb/WebGL/WebGLShaderPrecisionFormat.h>
|
||||
#include <LibWeb/WebGL/WebGLTexture.h>
|
||||
#include <LibWeb/WebGL/WebGLUniformLocation.h>
|
||||
|
@ -519,6 +520,14 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "fenceSync"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
GLsync handle = glFenceSync(condition, flags);
|
||||
return WebGLSync::create(m_realm, handle);
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "shaderSource"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
Vector<GLchar*> strings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue