LibWeb/WebGL2: Implement fenceSync

This commit is contained in:
Luke Wilde 2024-12-13 14:42:03 +00:00 committed by Alexander Kalenik
commit 135ceb387e
Notes: github-actions[bot] 2024-12-14 08:10:14 +00:00
7 changed files with 26 additions and 6 deletions

View file

@ -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;