LibWeb: Implement WebGL getShaderSource

This commit is contained in:
Undefine
2025-11-01 16:52:42 +01:00
committed by Jelle Raaijmakers
parent 932a3328a3
commit 2d8b393c76
Notes: github-actions[bot] 2025-11-01 23:55:28 +00:00
5 changed files with 51 additions and 1 deletions

View File

@@ -196,6 +196,7 @@ public:
JS::Value get_shader_parameter(GC::Root<WebGLShader> shader, WebIDL::UnsignedLong pname);
GC::Root<WebGLShaderPrecisionFormat> get_shader_precision_format(WebIDL::UnsignedLong shadertype, WebIDL::UnsignedLong precisiontype);
Optional<String> get_shader_info_log(GC::Root<WebGLShader> shader);
Optional<String> get_shader_source(GC::Root<WebGLShader> shader);
GC::Root<WebGLUniformLocation> get_uniform_location(GC::Root<WebGLProgram> program, String name);
void hint(WebIDL::UnsignedLong target, WebIDL::UnsignedLong mode);
bool is_buffer(GC::Root<WebGLBuffer> buffer);