/* * Copyright (c) 2024, Jelle Raaijmakers * Copyright (c) 2024, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::WebGL { class WebGLShader final : public WebGLObject { WEB_PLATFORM_OBJECT(WebGLShader, WebGLObject); GC_DECLARE_ALLOCATOR(WebGLShader); public: static GC::Ptr create(JS::Realm& realm, GLuint handle); virtual ~WebGLShader(); protected: explicit WebGLShader(JS::Realm&, GLuint handle); }; }