mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/WebGL2: Implement deleteSampler
This commit is contained in:
parent
09ad685238
commit
f627c91bf3
Notes:
github-actions[bot]
2025-01-08 14:57:49 +00:00
Author: https://github.com/Lubrsi
Commit: f627c91bf3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2943
Reviewed-by: https://github.com/kalenikaliaksandr
2 changed files with 9 additions and 1 deletions
|
@ -388,7 +388,7 @@ interface mixin WebGL2RenderingContextBase {
|
||||||
|
|
||||||
// Sampler Objects
|
// Sampler Objects
|
||||||
WebGLSampler createSampler();
|
WebGLSampler createSampler();
|
||||||
[FIXME] undefined deleteSampler(WebGLSampler? sampler);
|
undefined deleteSampler(WebGLSampler? sampler);
|
||||||
[FIXME] GLboolean isSampler(WebGLSampler? sampler); // [WebGLHandlesContextLoss]
|
[FIXME] GLboolean isSampler(WebGLSampler? sampler); // [WebGLHandlesContextLoss]
|
||||||
undefined bindSampler(GLuint unit, WebGLSampler? sampler);
|
undefined bindSampler(GLuint unit, WebGLSampler? sampler);
|
||||||
undefined samplerParameteri(WebGLSampler sampler, GLenum pname, GLint param);
|
undefined samplerParameteri(WebGLSampler sampler, GLenum pname, GLint param);
|
||||||
|
|
|
@ -1288,6 +1288,14 @@ public:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (function.name == "deleteSampler"sv) {
|
||||||
|
generate_webgl_object_handle_unwrap(function_impl_generator, "sampler"sv, ""sv);
|
||||||
|
function_impl_generator.append(R"~~~(
|
||||||
|
glDeleteSamplers(1, &sampler_handle);
|
||||||
|
)~~~");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (function.name == "bindBuffer"sv) {
|
if (function.name == "bindBuffer"sv) {
|
||||||
// FIXME: Implement Buffer Object Binding restrictions.
|
// FIXME: Implement Buffer Object Binding restrictions.
|
||||||
generate_webgl_object_handle_unwrap(function_impl_generator, "buffer"sv, ""sv);
|
generate_webgl_object_handle_unwrap(function_impl_generator, "buffer"sv, ""sv);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue